pub(crate) struct StructVariant {
m: Map<String, Value>,
variant: &'static str,
prime: Serializer,
}Fields§
§m: Map<String, Value>§variant: &'static str§prime: SerializerImplementations§
Source§impl StructVariant
impl StructVariant
fn new(prime: Serializer, variant: &'static str) -> Self
Trait Implementations§
Source§impl Clone for StructVariant
impl Clone for StructVariant
Source§fn clone(&self) -> StructVariant
fn clone(&self) -> StructVariant
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 moreSource§impl<'a> SerializeStructVariant for &'a mut StructVariant
impl<'a> SerializeStructVariant for &'a mut StructVariant
Auto Trait Implementations§
impl Freeze for StructVariant
impl !RefUnwindSafe for StructVariant
impl !Send for StructVariant
impl !Sync for StructVariant
impl Unpin for StructVariant
impl !UnwindSafe for StructVariant
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