Module cbor

Source
Expand description

Helpful functionality around the serde_cbor crate.

Enums§

CborError
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.