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]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for PublicKey
[src]
fn eq(&self, other: &PublicKey) -> bool
[src]
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[src]
This method tests for !=
.