Function switchboard_solana::prelude::borsh::try_to_vec_with_schema
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.