Enum coset::iana::OkpKeyParameter
source · #[non_exhaustive]pub enum OkpKeyParameter {
Crv = -1,
X = -2,
D = -4,
}
Expand description
IANA-registered COSE key parameters for keys of type KeyType::OKP
.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#key-type-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.
Crv = -1
EC identifier - Taken from the “COSE Elliptic Curves” registry
Associated value of type tstr / int
X = -2
x-coordinate
Associated value of type bstr
D = -4
Private key
Associated value of type bstr
Trait Implementations§
source§impl Clone for OkpKeyParameter
impl Clone for OkpKeyParameter
source§fn clone(&self) -> OkpKeyParameter
fn clone(&self) -> OkpKeyParameter
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 OkpKeyParameter
impl Debug for OkpKeyParameter
source§impl EnumI64 for OkpKeyParameter
impl EnumI64 for OkpKeyParameter
source§impl Ord for OkpKeyParameter
impl Ord for OkpKeyParameter
source§fn cmp(&self, other: &OkpKeyParameter) -> Ordering
fn cmp(&self, other: &OkpKeyParameter) -> 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 OkpKeyParameter
impl PartialEq for OkpKeyParameter
source§fn eq(&self, other: &OkpKeyParameter) -> bool
fn eq(&self, other: &OkpKeyParameter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OkpKeyParameter
impl PartialOrd for OkpKeyParameter
source§fn partial_cmp(&self, other: &OkpKeyParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &OkpKeyParameter) -> 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 OkpKeyParameter
impl Eq for OkpKeyParameter
impl StructuralPartialEq for OkpKeyParameter
Auto Trait Implementations§
impl Freeze for OkpKeyParameter
impl RefUnwindSafe for OkpKeyParameter
impl Send for OkpKeyParameter
impl Sync for OkpKeyParameter
impl Unpin for OkpKeyParameter
impl UnwindSafe for OkpKeyParameter
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