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
E.g.: #[serde(tag = "t", content = "c")]
E.g.: #[serde(tag = "t")]
Show 1 field
Fields of Internal
tag: &'static strThe default enum’s representation
E.g.: #[serde(untagged)]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tagimpl UnwindSafe for TagBlanket Implementations
Mutably borrows from an owned value. Read more