Trait oasis_cbor::encode::Encode
source · pub trait Encode {
fn into_cbor_value(self) -> Value;
fn is_empty(&self) -> bool { ... }
}
Expand description
Trait for types that can be encoded into CBOR.
Required Methods
sourcefn into_cbor_value(self) -> Value
fn into_cbor_value(self) -> Value
Encode the type into a CBOR Value.