#[non_exhaustive]pub enum CborTag {
CoseEncrypt0 = 16,
CoseMac0 = 17,
CoseSign1 = 18,
Cwt = 61,
CoseEncrypt = 96,
CoseMac = 97,
CoseSign = 98,
}
Expand description
CBOR tag values for COSE structures.
From IANA registry https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CoseEncrypt0 = 16
COSE Single Recipient Encrypted Data Object
CoseMac0 = 17
COSE Mac w/o Recipients Object
CoseSign1 = 18
COSE Single Signer Data Object
Cwt = 61
CBOR Web Token (CWT)
CoseEncrypt = 96
COSE Encrypted Data Object
CoseMac = 97
COSE MACed Data Object
CoseSign = 98
COSE Signed Data Object
Trait Implementations§
source§impl Ord for CborTag
impl Ord for CborTag
source§impl PartialEq for CborTag
impl PartialEq for CborTag
source§impl PartialOrd for CborTag
impl PartialOrd for CborTag
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CborTag
impl Eq for CborTag
impl StructuralPartialEq for CborTag
Auto Trait Implementations§
impl Freeze for CborTag
impl RefUnwindSafe for CborTag
impl Send for CborTag
impl Sync for CborTag
impl Unpin for CborTag
impl UnwindSafe for CborTag
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