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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".