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