Trait oasis_cbor::encode::EncodeAsMap
source · pub trait EncodeAsMap: Encode {
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.