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