[−][src]Struct authorized_keys::openssh::v2::PublicKey
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]
fn clone(&self) -> 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
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,