Module oasis_cbor::writer
source · Expand description
Functionality for serializing CBOR values into bytes.
Enums
Possible errors from a serialization operation.
Functions
Convert a
Value
to serialized CBOR data, consuming it along the way and appending to the provided vector.
Maximum level of nesting supported is 127; more deeply nested structures will fail with
EncoderError::TooMuchNesting
.Convert a
Value
to serialized CBOR data, consuming it along the way and appending to the provided vector. If
max_nest
is Some(max)
, then nested structures are only supported up to the given limit (returning
[DecoderError::TooMuchNesting
] if the limit is hit).