pub struct KeychainStore { /* private fields */ }Expand description
Credential store using the OS keychain.
This is the recommended store for production use. It securely stores credentials in:
- macOS: Keychain Services
- Windows: Credential Manager
- Linux: Secret Service (GNOME Keyring / KWallet)
Implementations§
Source§impl KeychainStore
impl KeychainStore
Trait Implementations§
Source§impl CredentialStore for KeychainStore
impl CredentialStore for KeychainStore
Source§fn store(&self, key: &str, value: &SecretString) -> Result<()>
fn store(&self, key: &str, value: &SecretString) -> Result<()>
Store a credential securely. Read more
Source§fn get(&self, key: &str) -> Result<Option<SecretString>>
fn get(&self, key: &str) -> Result<Option<SecretString>>
Retrieve a stored credential. Read more
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if this credential store is available and functional. Read more
Source§fn is_writable(&self) -> bool
fn is_writable(&self) -> bool
Check if this store supports write operations. Read more
Source§impl Debug for KeychainStore
impl Debug for KeychainStore
Auto Trait Implementations§
impl Freeze for KeychainStore
impl RefUnwindSafe for KeychainStore
impl Send for KeychainStore
impl Sync for KeychainStore
impl Unpin for KeychainStore
impl UnsafeUnpin for KeychainStore
impl UnwindSafe for KeychainStore
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