Function borsh::schema_helpers::try_to_vec_with_schema [−][src]
pub fn try_to_vec_with_schema<T: BorshSerialize + BorshSchema>(
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.