Function rmp_serde::encode::to_vec_named [−][src]
pub fn to_vec_named<T: ?Sized>(val: &T) -> Result<Vec<u8>, Error> where
T: Serialize,
Expand description
Serializes data structure into byte vector as a map Resulting MessagePack message will contain field names
Errors
Serialization can fail if T
’s implementation of Serialize
decides to fail.