pub fn try_to_vec_with_schema<T: BorshSerialize + BorshSchema + ?Sized>(
value: &T,
) -> Result<Vec<u8>>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: BorshSerialize + BorshSchema + ?Sized>(
value: &T,
) -> Result<Vec<u8>>Serialize object into a vector of bytes and prefix with the schema serialized as vector of bytes in Borsh format.