pub struct GeneratedKey {
pub public_key: String,
pub private_key_path: PathBuf,
pub public_key_path: PathBuf,
pub fingerprint: String,
}Expand description
A freshly generated pair. The private half is held only long enough to be written; nothing in this crate sends it anywhere.
Fields§
§public_key: StringThe ssh-ed25519 AAAA... <comment> line, which is what gets
uploaded.
private_key_path: PathBuf§public_key_path: PathBuf§fingerprint: StringSHA256:..., for showing the user which key they just made and
for matching against what the host already has.
Trait Implementations§
Auto Trait Implementations§
impl Forget for GeneratedKey
impl Freeze for GeneratedKey
impl Move for GeneratedKey
impl RefUnwindSafe for GeneratedKey
impl Send for GeneratedKey
impl Sync for GeneratedKey
impl Unpin for GeneratedKey
impl UnsafeUnpin for GeneratedKey
impl UnwindSafe for GeneratedKey
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