pub fn try_to_vec_with_schema<T>(value: &T) -> Result<Vec<u8>, Error>where
T: BorshSerialize + BorshSchema,
Expand description
Serialize object into a vector of bytes and prefix with the schema serialized as vector of bytes in Borsh format.
pub fn try_to_vec_with_schema<T>(value: &T) -> Result<Vec<u8>, Error>where
T: BorshSerialize + BorshSchema,
Serialize object into a vector of bytes and prefix with the schema serialized as vector of bytes in Borsh format.