Function borsh::to_vec

source ·
pub fn to_vec<T>(value: &T) -> Result<Vec<u8>>where
    T: BorshSerialize + ?Sized,
Expand description

Serialize an object into a vector of bytes.