pub struct DbKeyStore { /* private fields */ }Implementations§
Source§impl DbKeyStore
impl DbKeyStore
pub fn new(config: DbKeyStoreConfig) -> Result<Arc<DbKeyStore>>
pub fn new_with_modifiers( modifiers: &HashMap<&str, &str>, ) -> Result<Arc<DbKeyStore>>
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Returns true if the db file is encrypted
Trait Implementations§
Source§impl Clone for DbKeyStore
impl Clone for DbKeyStore
Source§fn clone(&self) -> DbKeyStore
fn clone(&self) -> DbKeyStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialStoreApi for DbKeyStore
impl CredentialStoreApi for DbKeyStore
Source§fn build(
&self,
service: &str,
user: &str,
modifiers: Option<&HashMap<&str, &str>>,
) -> Result<Entry>
fn build( &self, service: &str, user: &str, modifiers: Option<&HashMap<&str, &str>>, ) -> Result<Entry>
Create a credential entry for service and user.
Service and user must be non-empty, and within the length limits. (<=1024 chars)
Supported modifiers: uuid, comment.
Source§fn search(&self, spec: &HashMap<&str, &str>) -> Result<Vec<Entry>>
fn search(&self, spec: &HashMap<&str, &str>) -> Result<Vec<Entry>>
Search for credentials that match the given spec. Read more
Source§fn persistence(&self) -> CredentialPersistence
fn persistence(&self) -> CredentialPersistence
The lifetime of credentials produced by this builder. Read more
Auto Trait Implementations§
impl Freeze for DbKeyStore
impl !RefUnwindSafe for DbKeyStore
impl Send for DbKeyStore
impl Sync for DbKeyStore
impl Unpin for DbKeyStore
impl !UnwindSafe for DbKeyStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more