struct KeyValueStructSerializer<'a, M> {
delegate: &'a mut M,
is_human_readable: bool,
name: &'static str,
content: Vec<(&'static str, Content)>,
key: Option<Content>,
}Expand description
Serialize a struct to a key and value pair of a map.
This requires that the struct has one field named $key$.
Fields§
§delegate: &'a mut M§is_human_readable: bool§name: &'static str§content: Vec<(&'static str, Content)>§key: Option<Content>Trait Implementations§
Source§impl<M> SerializeStruct for KeyValueStructSerializer<'_, M>where
M: SerializeMap,
impl<M> SerializeStruct for KeyValueStructSerializer<'_, M>where
M: SerializeMap,
Auto Trait Implementations§
impl<'a, M> Freeze for KeyValueStructSerializer<'a, M>
impl<'a, M> RefUnwindSafe for KeyValueStructSerializer<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for KeyValueStructSerializer<'a, M>where
M: Send,
impl<'a, M> Sync for KeyValueStructSerializer<'a, M>where
M: Sync,
impl<'a, M> Unpin for KeyValueStructSerializer<'a, M>
impl<'a, M> UnsafeUnpin for KeyValueStructSerializer<'a, M>
impl<'a, M> !UnwindSafe for KeyValueStructSerializer<'a, M>
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