pub struct SerializeStructVariantAsSingletonMap<M> { /* private fields */ }
Expand description
A helper struct for serializing struct variants as singleton maps.
This struct is used internally by the singleton_map
module to serialize struct variants
as YAML maps with a single key-value pair, where the key is the variant name and the value
is a YAML mapping containing the struct fields.
§Type Parameters
M
- The type of the underlying serializer map.
Trait Implementations§
source§impl<M: Clone> Clone for SerializeStructVariantAsSingletonMap<M>
impl<M: Clone> Clone for SerializeStructVariantAsSingletonMap<M>
source§fn clone(&self) -> SerializeStructVariantAsSingletonMap<M>
fn clone(&self) -> SerializeStructVariantAsSingletonMap<M>
Returns a copy 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<M: Debug> Debug for SerializeStructVariantAsSingletonMap<M>
impl<M: Debug> Debug for SerializeStructVariantAsSingletonMap<M>
source§impl<M> SerializeStructVariant for SerializeStructVariantAsSingletonMap<M>where
M: SerializeMap,
impl<M> SerializeStructVariant for SerializeStructVariantAsSingletonMap<M>where
M: SerializeMap,
source§type Ok = <M as SerializeMap>::Ok
type Ok = <M as SerializeMap>::Ok
Must match the
Ok
type of our Serializer
.source§type Error = <M as SerializeMap>::Error
type Error = <M as SerializeMap>::Error
Must match the
Error
type of our Serializer
.Auto Trait Implementations§
impl<M> Freeze for SerializeStructVariantAsSingletonMap<M>where
M: Freeze,
impl<M> RefUnwindSafe for SerializeStructVariantAsSingletonMap<M>where
M: RefUnwindSafe,
impl<M> Send for SerializeStructVariantAsSingletonMap<M>where
M: Send,
impl<M> Sync for SerializeStructVariantAsSingletonMap<M>where
M: Sync,
impl<M> Unpin for SerializeStructVariantAsSingletonMap<M>where
M: Unpin,
impl<M> UnwindSafe for SerializeStructVariantAsSingletonMap<M>where
M: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)