Function rmp_serde::encode::to_vec_named
source · pub fn to_vec_named<T>(val: &T) -> Result<Vec<u8>, Error>
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.