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
E.g.: #[serde(tag = "t")]
External
The default enum’s representation
None
E.g.: #[serde(untagged)]
Trait Implementations§
impl Copy for Tag
impl Eq for Tag
impl StructuralEq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more