pub struct HybridPublicKey {
pub ssh_key: PublicKey,
pub algorithm: KeyAlgorithm,
pub file_path: PathBuf,
pub comment: String,
}Expand description
SSH public key wrapper for hybrid encryption
Fields§
§ssh_key: PublicKeyThe raw SSH public key
algorithm: KeyAlgorithmThe algorithm type
file_path: PathBufThe file path where this key was found
comment: StringKey comment/identifier
Implementations§
Source§impl HybridPublicKey
impl HybridPublicKey
Sourcepub fn new(
ssh_key: SshPublicKey,
file_path: PathBuf,
) -> Result<Self, SshKeyError>
pub fn new( ssh_key: SshPublicKey, file_path: PathBuf, ) -> Result<Self, SshKeyError>
Create a new hybrid public key
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Get a display name for this key
Trait Implementations§
Source§impl Clone for HybridPublicKey
impl Clone for HybridPublicKey
Source§fn clone(&self) -> HybridPublicKey
fn clone(&self) -> HybridPublicKey
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 moreAuto Trait Implementations§
impl Freeze for HybridPublicKey
impl RefUnwindSafe for HybridPublicKey
impl Send for HybridPublicKey
impl Sync for HybridPublicKey
impl Unpin for HybridPublicKey
impl UnwindSafe for HybridPublicKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more