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