pub enum PublicKeyType {
Ed25519,
Secp256k1,
P256,
P384,
}Variants§
Ed25519
Ed25519 Public Key
Secp256k1
Secp256k1 Public Key
P256
NIST P-256 Public Key
P384
NIST P-384 Public Key
Trait Implementations§
Source§impl Clone for PublicKeyType
impl Clone for PublicKeyType
Source§fn clone(&self) -> PublicKeyType
fn clone(&self) -> PublicKeyType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PublicKeyType
Source§impl Debug for PublicKeyType
impl Debug for PublicKeyType
impl Eq for PublicKeyType
Source§impl From<PublicKeyType> for u8
impl From<PublicKeyType> for u8
Source§fn from(value: PublicKeyType) -> Self
fn from(value: PublicKeyType) -> Self
Converts to this type from the input type.
Source§impl Ord for PublicKeyType
impl Ord for PublicKeyType
Source§fn cmp(&self, other: &PublicKeyType) -> Ordering
fn cmp(&self, other: &PublicKeyType) -> Ordering
1.21.0 (const: unstable) · 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 PublicKeyType
impl PartialEq for PublicKeyType
Source§fn eq(&self, other: &PublicKeyType) -> bool
fn eq(&self, other: &PublicKeyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PublicKeyType
impl PartialOrd for PublicKeyType
impl StructuralPartialEq for PublicKeyType
Auto Trait Implementations§
impl Freeze for PublicKeyType
impl RefUnwindSafe for PublicKeyType
impl Send for PublicKeyType
impl Sync for PublicKeyType
impl Unpin for PublicKeyType
impl UnsafeUnpin for PublicKeyType
impl UnwindSafe for PublicKeyType
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