pub struct CredentialStore;Implementations§
Source§impl CredentialStore
impl CredentialStore
Sourcepub fn store(username: &str, password: &str) -> Result<()>
pub fn store(username: &str, password: &str) -> Result<()>
Store username and password in the OS keychain
Sourcepub fn get_password(username: &str) -> Result<String>
pub fn get_password(username: &str) -> Result<String>
Retrieve password for a username from the OS keychain
Sourcepub fn has_credentials(username: &str) -> bool
pub fn has_credentials(username: &str) -> bool
Check if credentials exist for a username
Auto Trait Implementations§
impl Freeze for CredentialStore
impl RefUnwindSafe for CredentialStore
impl Send for CredentialStore
impl Sync for CredentialStore
impl Unpin for CredentialStore
impl UnsafeUnpin for CredentialStore
impl UnwindSafe for CredentialStore
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