pub fn serialize<T>(data: &T) -> Vec<u8> ⓘwhere T: Encodable + ?Sized,
Encode an object into a vector