pub trait FromCbor<'d> { // Required method fn from_cbor(bytes: &'d [u8]) -> Result<Self, Error> where Self: Sized; }
A trait mostly for convenience, as we often end up writing bytes to CBOR.