Enum ssh_keys::PublicKey
[−]
[src]
pub enum PublicKey { Rsa { exponent: Vec<u8>, modulus: Vec<u8>, }, Ed25519([u8; 32]), }
Public key enum
Variants
Rsa
RSA key
Fields of Rsa
exponent: Vec<u8> | |
modulus: Vec<u8> |
Ed25519([u8; 32])
Ed25519 (eliptic curves) key
Trait Implementations
impl Debug for PublicKey
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for PublicKey
[src]
fn eq(&self, other: &PublicKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.