pub enum KeyType {
Ed25519,
Rsa {
bits: u32,
},
EcdsaP256,
EcdsaP384,
EcdsaP521,
Dsa,
SkEd25519,
SkEcdsaP256,
}Expand description
SSH key algorithm.
Variants§
Ed25519
Ed25519 — modern default.
Rsa
RSA with specified bit size (2048, 3072, 4096).
EcdsaP256
ECDSA P-256.
EcdsaP384
ECDSA P-384.
EcdsaP521
ECDSA P-521.
Dsa
DSA (legacy).
SkEd25519
FIDO2 security key Ed25519.
SkEcdsaP256
FIDO2 security key ECDSA P-256.
Trait Implementations§
impl Copy for KeyType
Source§impl<'de> Deserialize<'de> for KeyType
impl<'de> Deserialize<'de> for KeyType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyType
Source§impl Serialize for KeyType
impl Serialize for KeyType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnsafeUnpin for KeyType
impl UnwindSafe for KeyType
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