pub enum Tagging {
External,
Internal {
tag: &'static str,
},
Adjacent {
tag: &'static str,
content: &'static str,
},
Untagged,
}Expand description
Serde container or enum tagging representation.
Variants§
External
The default externally tagged representation.
Internal
#[serde(tag = "...")].
Adjacent
#[serde(tag = "...", content = "...")].
Untagged
#[serde(untagged)].
Trait Implementations§
impl Eq for Tagging
impl StructuralPartialEq for Tagging
Auto Trait Implementations§
impl Freeze for Tagging
impl RefUnwindSafe for Tagging
impl Send for Tagging
impl Sync for Tagging
impl Unpin for Tagging
impl UnsafeUnpin for Tagging
impl UnwindSafe for Tagging
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