Document fields in internal structs used to deserialize adjacently tagged enums

This commit is contained in:
Mingun authored and Mingun committed 2024-08-16 21:39:55 +05:00
1 parent 3dc6829303
commit a7f0bab078
1 file changed
+4
+4
View File
@@ -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,
}