Enum doku::Tag [−][src]
pub enum Tag {
Adjacent {
tag: &'static str,
content: &'static str,
},
Internal {
tag: &'static str,
},
External,
None,
}
Expand description
Defines the way enums are represented (https://serde.rs/enum-representations.html)
Variants
Adjacent
E.g.: #[serde(tag = "t", content = "c")]
Internal
Fields
tag: &'static str
E.g.: #[serde(tag = "t")]
External
The default enum’s representation
None
E.g.: #[serde(untagged)]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl UnwindSafe for Tag
Blanket Implementations
Mutably borrows from an owned value. Read more