Skip to main content

SerializeMapBuilder

Trait SerializeMapBuilder 

Source
pub trait SerializeMapBuilder {
    // Required method
    fn create_ser_map(&self) -> Box<dyn Map + '_>;
}
Expand description

Produces a ser::Map over this type’s fields for flatten serialization.

Enables a parent to inline this type’s key-value pairs instead of nesting them in a sub-object, without going through an intermediate Value.

Required Methods§

Source

fn create_ser_map(&self) -> Box<dyn Map + '_>

Implementations on Foreign Types§

Source§

impl<K, V> SerializeMapBuilder for BTreeMap<K, V>
where K: ToString, V: Serialize,

Source§

fn create_ser_map(&self) -> Box<dyn Map + '_>

Source§

impl<K, V, H> SerializeMapBuilder for HashMap<K, V, H>
where K: Hash + Eq + ToString, V: Serialize, H: BuildHasher,

Source§

fn create_ser_map(&self) -> Box<dyn Map + '_>

Implementors§