pub trait EncodeAsMap: Encode {
// Provided methods
fn into_cbor_value_map(self) -> Value
where Self: Sized { ... }
fn into_cbor_map(self) -> Vec<(Value, Value)>
where Self: Sized { ... }
}Expand description
Trait for types that always encode as CBOR maps.
Provided Methods§
Sourcefn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".