Expand description
Helpful functionality around the serde_cbor
crate.
Enums§
- Cbor
Error - The error type for the
cbor
module.
Functions§
- array_
to_ map - Changes the given CBOR bytes from an array of n elements to a map of n / 2 key/value pairs.
- build_
map_ single - decode
- Deserializes a CBOR encoded object.
- decode_
sequence - Deserializes a sequence of CBOR encoded data items into an object.
- encode
- Serializes an object into CBOR.
- encode_
sequence - Serializes an object into a sequence of CBOR encoded data items.
- map_
to_ array - Changes the given CBOR bytes from a map of n key/value pairs to an array of n * 2 items.
Type Aliases§
- Result
- The result type for the
cbor
module.