pub trait CborSerializable: AsCborValue {
    fn from_slice(slice: &[u8]) -> Result<Self> { ... }
fn to_vec(self) -> Result<Vec<u8>> { ... } }
Expand description

Extension trait that adds serialization/deserialization methods.

Provided methods

Create an object instance from serialized CBOR data in a slice.

Serialize this object to a vector, consuming it along the way.

Implementors