Struct coset::CoseEncrypt0 [−][src]
pub struct CoseEncrypt0 {
pub protected: Header,
pub unprotected: Header,
pub ciphertext: Option<Vec<u8>>,
}
Expand description
Structure representing an encrypted object.
COSE_Encrypt0 = [
Headers,
ciphertext : bstr / nil,
]
Fields
protected: Header
unprotected: Header
ciphertext: Option<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.
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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 CoseEncrypt0
impl Send for CoseEncrypt0
impl Sync for CoseEncrypt0
impl Unpin for CoseEncrypt0
impl UnwindSafe for CoseEncrypt0
Blanket Implementations
Mutably borrows from an owned value. Read more