pub struct ParsedKey {
pub key_type: String,
pub key_blob: Vec<u8>,
pub fingerprint: String,
pub comment: String,
}Expand description
Parsed representation of an OpenSSH public key, ready to hand to
AddSshKey.
Fields§
§key_type: StringOpenSSH algorithm name, e.g. ssh-ed25519.
key_blob: Vec<u8>Raw wire-format public key blob. Not the base64 form — decoded.
fingerprint: StringSHA-256 fingerprint as OpenSSH renders it (SHA256:… with
unpadded base64).
comment: StringComment from the authorized_keys line, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedKey
impl RefUnwindSafe for ParsedKey
impl Send for ParsedKey
impl Sync for ParsedKey
impl Unpin for ParsedKey
impl UnsafeUnpin for ParsedKey
impl UnwindSafe for ParsedKey
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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