pub fn to_vec<T>(t: &T) -> Result<Vec<u8>, Error>where T: SerializeRevisioned,
Serialize a revisioned type into a vec of bytes