pub struct SshKeyInfo {
pub path: PathBuf,
pub algorithm: String,
pub bits: Option<u32>,
pub fingerprint: String,
pub comment: Option<String>,
}Expand description
Information about an SSH key.
Fields§
§path: PathBufPath to the private key file.
algorithm: StringKey algorithm (ed25519, rsa, ecdsa).
bits: Option<u32>Key size in bits (for RSA).
fingerprint: StringPublic key fingerprint.
comment: Option<String>Comment from the public key file.
Trait Implementations§
Source§impl Clone for SshKeyInfo
impl Clone for SshKeyInfo
Source§fn clone(&self) -> SshKeyInfo
fn clone(&self) -> SshKeyInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SshKeyInfo
impl Debug for SshKeyInfo
Source§impl<'de> Deserialize<'de> for SshKeyInfo
impl<'de> Deserialize<'de> for SshKeyInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SshKeyInfo
impl RefUnwindSafe for SshKeyInfo
impl Send for SshKeyInfo
impl Sync for SshKeyInfo
impl Unpin for SshKeyInfo
impl UnsafeUnpin for SshKeyInfo
impl UnwindSafe for SshKeyInfo
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