pub trait CoseSerializable<T: CoseContentFormat + ConstContentFormat> {
// Required methods
fn to_cose(&self) -> Bytes<T>;
fn from_cose(bytes: &Bytes<T>) -> Result<Self, EncodingError>
where Self: Sized;
}
Expand description
Trait for structs that are serializable to COSE objects.