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")]
Fields of Internal
tag: &'static str
The default enum’s representation
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