SerializeNamed

Trait SerializeNamed 

Source
pub trait SerializeNamed {
    // Required method
    fn ser_named<S: SerializeMap>(
        &self,
        serializer: S,
    ) -> Result<S::Ok, S::Error>;
}
Expand description

Support for serializing a type into a RequestParameters::ByName.

Required Methods§

Source

fn ser_named<S: SerializeMap>(&self, serializer: S) -> Result<S::Ok, S::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K, V> SerializeNamed for BTreeMap<K, V>
where K: Serialize, V: Serialize,

Source§

fn ser_named<S: SerializeMap>(&self, serializer: S) -> Result<S::Ok, S::Error>

Source§

impl<K, V, H> SerializeNamed for HashMap<K, V, H>
where K: Serialize, V: Serialize,

Source§

fn ser_named<S: SerializeMap>(&self, serializer: S) -> Result<S::Ok, S::Error>

Source§

impl<T, E> SerializeNamed for Result<T, E>
where T: Serialize, E: Serialize,

Source§

fn ser_named<S: SerializeMap>(&self, serializer: S) -> Result<S::Ok, S::Error>

Implementors§