pub struct ProtectedHeader {
pub original_data: Option<Vec<u8>>,
pub header: Header,
}Expand description
Structure representing a protected COSE header map.
Fields§
§original_data: Option<Vec<u8>>If this structure was created by parsing serialized data, this field
holds the entire contents of the original bstr data.
header: HeaderParsed header information.
Implementations§
Source§impl ProtectedHeader
impl ProtectedHeader
Trait Implementations§
Source§impl AsCborValue for ProtectedHeader
impl AsCborValue for ProtectedHeader
Source§fn from_cbor_value(value: Value) -> Result<ProtectedHeader, CoseError>
fn from_cbor_value(value: Value) -> Result<ProtectedHeader, CoseError>
Convert a
Value into an instance of the type.Source§impl CborSerializable for ProtectedHeader
impl CborSerializable for ProtectedHeader
Source§impl Clone for ProtectedHeader
impl Clone for ProtectedHeader
Source§fn clone(&self) -> ProtectedHeader
fn clone(&self) -> ProtectedHeader
Returns a duplicate 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 ProtectedHeader
impl Debug for ProtectedHeader
Source§impl Default for ProtectedHeader
impl Default for ProtectedHeader
Source§fn default() -> ProtectedHeader
fn default() -> ProtectedHeader
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProtectedHeader
impl PartialEq for ProtectedHeader
impl StructuralPartialEq for ProtectedHeader
Auto Trait Implementations§
impl Freeze for ProtectedHeader
impl RefUnwindSafe for ProtectedHeader
impl Send for ProtectedHeader
impl Sync for ProtectedHeader
impl Unpin for ProtectedHeader
impl UnwindSafe for ProtectedHeader
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.