pub fn to_vec<T: Serialize>(value: &T) -> Result<Vec<u8>>
Encode the specified struct into a [u8] buffer
[u8]