pub enum UnionRepresentation {
AdjacentlyTagged {
tag: String,
content: String,
},
InternallyTagged {
tag: String,
},
ExternallyTagged,
Untagged,
}
Expand description
The serialized representation of the union type
See https://serde.rs/enum-representations.html for details
Variants§
AdjacentlyTagged
An adjacently tagged representation
InternallyTagged
An internally tagged representation
ExternallyTagged
An externally tagged representation
Untagged
An untagged representation
Trait Implementations§
Source§impl Clone for UnionRepresentation
impl Clone for UnionRepresentation
Source§fn clone(&self) -> UnionRepresentation
fn clone(&self) -> UnionRepresentation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UnionRepresentation
impl RefUnwindSafe for UnionRepresentation
impl Send for UnionRepresentation
impl Sync for UnionRepresentation
impl Unpin for UnionRepresentation
impl UnwindSafe for UnionRepresentation
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