From a7f0bab078ea5226c244069f43738c5e896483c2 Mon Sep 17 00:00:00 2001 From: Mingun Date: Mon, 12 Aug 2024 00:49:58 +0500 Subject: [PATCH] Document fields in internal structs used to deserialize adjacently tagged enums --- serde/src/private/de.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index c146539e..6c81b720 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -904,7 +904,9 @@ mod content { /// Not public API. pub struct TagOrContentFieldVisitor { + /// Name of the tag field of the adjacently tagged enum pub tag: &'static str, + /// Name of the content field of the adjacently tagged enum pub content: &'static str, } @@ -979,7 +981,9 @@ mod content { /// Not public API. pub struct TagContentOtherFieldVisitor { + /// Name of the tag field of the adjacently tagged enum pub tag: &'static str, + /// Name of the content field of the adjacently tagged enum pub content: &'static str, }