bendy::serde::ser
pub fn to_bytes<T: ?Sized>(value: &T) -> Result<Vec<u8>> where T: Serialize,
Serialize an instance of T to bencode
T