Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::rmp_serde::encode::to_vec
pub fn to_vec<T>(val: &T) -> Result<Vec<u8, Global>, Error>where
T: Serialize + ?Sized,
Expand description
Serialize the given data structure as a MessagePack byte vector. This method uses compact representation, structs are serialized as arrays
Serialization can fail if T
’s implementation of Serialize
decides to fail.