pub struct CoseSign1 {
pub protected_bytes: Vec<u8>,
pub unprotected_bytes: Vec<u8>,
pub payload: Vec<u8>,
pub signature: Vec<u8>,
}Expand description
A COSE_Sign1 structure.
Fields§
§protected_bytes: Vec<u8>Protected header (CBOR-encoded, raw bytes).
unprotected_bytes: Vec<u8>Unprotected header (raw bytes, usually empty).
payload: Vec<u8>Payload (the message being signed).
signature: Vec<u8>Signature bytes.
Implementations§
Source§impl CoseSign1
impl CoseSign1
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoseSign1
impl<'de> Deserialize<'de> for CoseSign1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CoseSign1
impl StructuralPartialEq for CoseSign1
Auto Trait Implementations§
impl Freeze for CoseSign1
impl RefUnwindSafe for CoseSign1
impl Send for CoseSign1
impl Sync for CoseSign1
impl Unpin for CoseSign1
impl UnsafeUnpin for CoseSign1
impl UnwindSafe for CoseSign1
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