Struct coset::SuppPubInfo
source · pub struct SuppPubInfo {
pub key_data_length: u64,
pub protected: ProtectedHeader,
pub other: Option<Vec<u8>>,
}
Expand description
Structure representing supplemental public information.
SuppPubInfo : [
keyDataLength : uint,
protected : empty_or_serialized_map,
? other : bstr
],
Fields§
§key_data_length: u64
§protected: ProtectedHeader
§other: Option<Vec<u8>>
Trait Implementations§
source§impl AsCborValue for SuppPubInfo
impl AsCborValue for SuppPubInfo
source§fn from_cbor_value(value: Value) -> Result<Self>
fn from_cbor_value(value: Value) -> Result<Self>
Convert a [
Value
] into an instance of the type.source§fn to_cbor_value(self) -> Result<Value>
fn to_cbor_value(self) -> Result<Value>
Convert the object into a [
Value
], consuming it along the way.source§impl CborSerializable for SuppPubInfo
impl CborSerializable for SuppPubInfo
source§fn from_slice(slice: &[u8]) -> Result<Self>
fn from_slice(slice: &[u8]) -> Result<Self>
Create an object instance from serialized CBOR data in a slice. This method will fail (with
CoseError::ExtraneousData
) if there is additional CBOR data after the object.source§impl Clone for SuppPubInfo
impl Clone for SuppPubInfo
source§fn clone(&self) -> SuppPubInfo
fn clone(&self) -> SuppPubInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SuppPubInfo
impl Debug for SuppPubInfo
source§impl Default for SuppPubInfo
impl Default for SuppPubInfo
source§fn default() -> SuppPubInfo
fn default() -> SuppPubInfo
Returns the “default value” for a type. Read more
source§impl PartialEq<SuppPubInfo> for SuppPubInfo
impl PartialEq<SuppPubInfo> for SuppPubInfo
source§fn eq(&self, other: &SuppPubInfo) -> bool
fn eq(&self, other: &SuppPubInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuppPubInfo
Auto Trait Implementations§
impl RefUnwindSafe for SuppPubInfo
impl Send for SuppPubInfo
impl Sync for SuppPubInfo
impl Unpin for SuppPubInfo
impl UnwindSafe for SuppPubInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more