[][src]Struct authorized_keys::openssh::v2::PublicKey

pub struct PublicKey {
    pub key_type: KeyType,
    pub encoded_key: String,
}

Represents a public key for authorization

Fields

key_type: KeyType

Type of key (e.g. ssh-rsa -> AuthorizedKeyType::SshRsa)

encoded_key: String

Public key data, base64 encoded

Methods

impl PublicKey[src]

pub fn encoded_key(self, val: String) -> Self[src]

Sets the encoded key to the provided value.

pub fn key_type(self, val: KeyType) -> Self[src]

Sets the key type to the provided value.

impl PublicKey[src]

pub fn new(key_type: KeyType, encoded_key: String) -> Self[src]

Create a representation of a public key

Trait Implementations

impl Eq for PublicKey[src]

impl PartialEq<PublicKey> for PublicKey[src]

impl Clone for PublicKey[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for PublicKey[src]

impl Debug for PublicKey[src]

impl Display for PublicKey[src]

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.