to_bytes

Function to_bytes 

pub(super) fn to_bytes<T>(value: &T) -> Result<Bytes, Error>
where T: ?Sized + Serialize,