pub fn canonical_bytes<T: Serialize + ?Sized>(value: &T) -> Result<Vec<u8>>Expand description
Encode value to canonical CBOR bytes.
Errors when the value cannot be serialized — for cache keys that must mean “uncacheable”, never a silent fallback encoding.