pub struct SshKeyStore { /* private fields */ }Expand description
SSH key storage.
Implementations§
Source§impl SshKeyStore
impl SshKeyStore
Sourcepub fn add(
&self,
user_id: UserId,
title: String,
public_key: String,
) -> Result<SshKey>
pub fn add( &self, user_id: UserId, title: String, public_key: String, ) -> Result<SshKey>
Add an SSH key.
Sourcepub fn get_by_fingerprint(&self, fingerprint: &str) -> Option<SshKey>
pub fn get_by_fingerprint(&self, fingerprint: &str) -> Option<SshKey>
Get an SSH key by fingerprint.
Sourcepub fn list_for_user(&self, user_id: UserId) -> Vec<SshKey>
pub fn list_for_user(&self, user_id: UserId) -> Vec<SshKey>
List SSH keys for a user.
Trait Implementations§
Source§impl Clone for SshKeyStore
impl Clone for SshKeyStore
Source§fn clone(&self) -> SshKeyStore
fn clone(&self) -> SshKeyStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SshKeyStore
impl Debug for SshKeyStore
Auto Trait Implementations§
impl !RefUnwindSafe for SshKeyStore
impl !UnwindSafe for SshKeyStore
impl Freeze for SshKeyStore
impl Send for SshKeyStore
impl Sync for SshKeyStore
impl Unpin for SshKeyStore
impl UnsafeUnpin for SshKeyStore
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