pub trait ReadCbor {
fn fmt(f: &mut impl Write) -> Result;
fn read_cbor_impl(cbor: &Cbor) -> Result<Self>
where
Self: Sized;
fn name() -> String { ... }
fn read_cbor(cbor: &Cbor) -> Result<Self>
where
Self: Sized,
{ ... }
}