Struct coset::CoseSign1 [−][src]
pub struct CoseSign1 {
pub protected: Header,
pub unprotected: Header,
pub payload: Option<Vec<u8>>,
pub signature: Vec<u8>,
}
Expand description
Signed payload with a single signature.
COSE_Sign1 = [
Headers,
payload : bstr / nil,
signature : bstr
]
Fields
protected: Header
unprotected: Header
payload: Option<Vec<u8>>
signature: Vec<u8>
Implementations
Trait Implementations
Create an object instance by reading serialized CBOR data from std::io::Read
instance.
Create an object instance from serialized CBOR data in a slice.
Deserialize this value from the given Serde deserializer. Read more
Create an object instance by reading serialized CBOR data from std::io::Read
instance,
expecting an initial tag value. Read more
Create an object instance from serialized CBOR data in a slice, expecting an initial tag value. Read more
Serialize this object to a vector, including initial tag.
Serialize this object to a std::io::Write
instance, including initial tag.
Auto Trait Implementations
impl RefUnwindSafe for CoseSign1
impl UnwindSafe for CoseSign1
Blanket Implementations
Mutably borrows from an owned value. Read more