pub fn try_to_vec_with_schema<T: BorshSerialize + BorshSchema>(
    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.