pub fn to_vec<T>(value: T) -> Vec<u8> where T: Encode,
Convert the given type into its CBOR-encoded representation.