pub enum PrivateKeyType {
Ed25519,
Aes256,
Secp256k1,
P256,
P384,
}Expand description
PrivateKey Types
Variants§
Ed25519
ED25519 Private Key
Aes256
AES-256 Private Key
Secp256k1
Secp256k1 Private Key
P256
NIST P-256 Private Key
P384
NIST P-384 Private Key
Trait Implementations§
Source§impl Clone for PrivateKeyType
impl Clone for PrivateKeyType
Source§fn clone(&self) -> PrivateKeyType
fn clone(&self) -> PrivateKeyType
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 PrivateKeyType
Source§impl Debug for PrivateKeyType
impl Debug for PrivateKeyType
Source§impl Default for PrivateKeyType
impl Default for PrivateKeyType
Source§fn default() -> PrivateKeyType
fn default() -> PrivateKeyType
Returns the “default value” for a type. Read more
Source§impl From<PrivateKeyType> for u8
impl From<PrivateKeyType> for u8
Source§fn from(value: PrivateKeyType) -> Self
fn from(value: PrivateKeyType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKeyType
impl RefUnwindSafe for PrivateKeyType
impl Send for PrivateKeyType
impl Sync for PrivateKeyType
impl Unpin for PrivateKeyType
impl UnsafeUnpin for PrivateKeyType
impl UnwindSafe for PrivateKeyType
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