pub fn encode<T: Encode>(value: T) -> Vec<u8> ⓘ
cbor
encode attempts to encode a generic Rust value to CBOR using the tiny, strict subset of types permitted by this package.