Struct coset::CoseSignature
source · pub struct CoseSignature {
pub protected: ProtectedHeader,
pub unprotected: Header,
pub signature: Vec<u8>,
}
Expand description
Structure representing a cryptographic signature.
COSE_Signature = [
Headers,
signature : bstr
]
Fields§
§protected: ProtectedHeader
§unprotected: Header
§signature: Vec<u8>
Trait Implementations§
source§impl AsCborValue for CoseSignature
impl AsCborValue for CoseSignature
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 CoseSignature
impl CborSerializable for CoseSignature
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 CoseSignature
impl Clone for CoseSignature
source§fn clone(&self) -> CoseSignature
fn clone(&self) -> CoseSignature
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 CoseSignature
impl Debug for CoseSignature
source§impl Default for CoseSignature
impl Default for CoseSignature
source§fn default() -> CoseSignature
fn default() -> CoseSignature
Returns the “default value” for a type. Read more
source§impl PartialEq<CoseSignature> for CoseSignature
impl PartialEq<CoseSignature> for CoseSignature
source§fn eq(&self, other: &CoseSignature) -> bool
fn eq(&self, other: &CoseSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CoseSignature
Auto Trait Implementations§
impl RefUnwindSafe for CoseSignature
impl Send for CoseSignature
impl Sync for CoseSignature
impl Unpin for CoseSignature
impl UnwindSafe for CoseSignature
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