pub struct StructVariantBuilder {
variant: &'static str,
fields: IndexMap<Value, Value>,
}Expand description
Accumulates fields for an externally-tagged struct variant.
Fields§
§variant: &'static str§fields: IndexMap<Value, Value>Trait Implementations§
Source§impl SerializeStructVariant for StructVariantBuilder
impl SerializeStructVariant for StructVariantBuilder
Auto Trait Implementations§
impl Freeze for StructVariantBuilder
impl RefUnwindSafe for StructVariantBuilder
impl Send for StructVariantBuilder
impl Sync for StructVariantBuilder
impl Unpin for StructVariantBuilder
impl UnsafeUnpin for StructVariantBuilder
impl UnwindSafe for StructVariantBuilder
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