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