pub fn to_bytes<T>(value: &T) -> Result<Vec<u8>>where T: Serialize + ?Sized,
Serialize a value into a new byte vector.