pub fn to_canonical_vec<T: Serialize>( value: &T, ) -> Result<Vec<u8>, CanonicalError>
Serialize a T and return its canonical CBOR bytes.
T