mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-14 05:51:01 +00:00
Document fields in internal structs used to deserialize adjacently tagged enums
This commit is contained in:
@@ -904,7 +904,9 @@ mod content {
|
|||||||
|
|
||||||
/// Not public API.
|
/// Not public API.
|
||||||
pub struct TagOrContentFieldVisitor {
|
pub struct TagOrContentFieldVisitor {
|
||||||
|
/// Name of the tag field of the adjacently tagged enum
|
||||||
pub tag: &'static str,
|
pub tag: &'static str,
|
||||||
|
/// Name of the content field of the adjacently tagged enum
|
||||||
pub content: &'static str,
|
pub content: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -979,7 +981,9 @@ mod content {
|
|||||||
|
|
||||||
/// Not public API.
|
/// Not public API.
|
||||||
pub struct TagContentOtherFieldVisitor {
|
pub struct TagContentOtherFieldVisitor {
|
||||||
|
/// Name of the tag field of the adjacently tagged enum
|
||||||
pub tag: &'static str,
|
pub tag: &'static str,
|
||||||
|
/// Name of the content field of the adjacently tagged enum
|
||||||
pub content: &'static str,
|
pub content: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user