Function otter_api_tests::imports::rmp_serde::encode::write_named[]

pub fn write_named<W, T>(wr: &mut W, val: &T) -> Result<(), Error> where
    T: Serialize + ?Sized,
    W: Write + ?Sized
Expand description

Serialize the given data structure as MessagePack into the I/O stream. This function serializes structures as maps

Serialization can fail if T’s implementation of Serialize decides to fail.