Document fields in internal structs used to deserialize adjacently tagged enums

This commit is contained in:
Mingun
2024-08-12 00:49:58 +05:00
committed by Mingun
parent 3dc6829303
commit a7f0bab078
+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,
}