pub struct KeychainFetch { /* private fields */ }Available on crate feature
fetcher-keychain only.Expand description
KeyFetch implementation that reads from the OS native credential
store. Cross-platform via the keyring crate.
Construct with KeychainFetch::new and the (service, account)
pair that identifies your entry. Both values are stored verbatim; they
appear in failure messages for diagnostics.
§Examples
use key_vault::{FetchContext, KeyFetch, KeychainFetch};
let fetcher = KeychainFetch::new("my-app", "primary-key");
let raw = fetcher.fetch(&FetchContext::new("primary"))?;Implementations§
Trait Implementations§
Source§impl Clone for KeychainFetch
impl Clone for KeychainFetch
Source§fn clone(&self) -> KeychainFetch
fn clone(&self) -> KeychainFetch
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 KeychainFetch
impl Debug for KeychainFetch
Auto Trait Implementations§
impl Freeze for KeychainFetch
impl RefUnwindSafe for KeychainFetch
impl Send for KeychainFetch
impl Sync for KeychainFetch
impl Unpin for KeychainFetch
impl UnsafeUnpin for KeychainFetch
impl UnwindSafe for KeychainFetch
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