Enum coset::iana::KeyParameter
source · #[non_exhaustive]pub enum KeyParameter {
Reserved = 0,
Kty = 1,
Kid = 2,
Alg = 3,
KeyOps = 4,
BaseIv = 5,
}
Expand description
IANA-registered COSE common key parameters.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#key-common-parameters 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.
Reserved = 0
Reserved value.
Kty = 1
Identification of the key type
Associated value of type tstr / int
Kid = 2
Key identification value - match to kid in message
Associated value of type bstr
Alg = 3
Key usage restriction to this algorithm
Associated value of type tstr / int
KeyOps = 4
Restrict set of permissible operations
Associated value of type [+ (tstr / int)]
BaseIv = 5
Base IV to be XORed with Partial IVs
Associated value of type bstr
Trait Implementations§
source§impl Clone for KeyParameter
impl Clone for KeyParameter
source§fn clone(&self) -> KeyParameter
fn clone(&self) -> KeyParameter
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 KeyParameter
impl Debug for KeyParameter
source§impl EnumI64 for KeyParameter
impl EnumI64 for KeyParameter
source§impl Ord for KeyParameter
impl Ord for KeyParameter
source§fn cmp(&self, other: &KeyParameter) -> Ordering
fn cmp(&self, other: &KeyParameter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for KeyParameter
impl PartialEq for KeyParameter
source§fn eq(&self, other: &KeyParameter) -> bool
fn eq(&self, other: &KeyParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeyParameter
impl PartialOrd for KeyParameter
source§fn partial_cmp(&self, other: &KeyParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyParameter) -> Option<Ordering>
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 KeyParameter
impl Eq for KeyParameter
impl StructuralPartialEq for KeyParameter
Auto Trait Implementations§
impl Freeze for KeyParameter
impl RefUnwindSafe for KeyParameter
impl Send for KeyParameter
impl Sync for KeyParameter
impl Unpin for KeyParameter
impl UnwindSafe for KeyParameter
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