solid
pub fn to_bytes<T>(value: &T) -> Result<Vec<u8>, Error> where T: Serialize + ?Sized,
Function to call to encode a struct that implements serde::Serialize
serde::Serialize