pub struct KeyPair { /* private fields */ }Expand description
Structure representing a key pair.
Implementations§
Source§impl KeyPair
impl KeyPair
Sourcepub fn fingerprint(&self) -> &String
pub fn fingerprint(&self) -> &String
Key pair fingerprint.
Sourcepub fn key_type(&self) -> Option<KeyPairType>
pub fn key_type(&self) -> Option<KeyPairType>
Key pair type, if available.
Sourcepub fn public_key(&self) -> &String
pub fn public_key(&self) -> &String
Public key.
Trait Implementations§
Source§impl From<KeyPair> for KeyPairRef
impl From<KeyPair> for KeyPairRef
Source§fn from(value: KeyPair) -> KeyPairRef
fn from(value: KeyPair) -> KeyPairRef
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyPair
impl !RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl !UnwindSafe for KeyPair
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