Struct keyring_search::Search
source · pub struct Search { /* private fields */ }Implementations§
source§impl Search
impl Search
sourcepub fn new() -> Result<Search>
pub fn new() -> Result<Search>
Create a new instance of the Credential Search.
The default credential search is used.
sourcepub fn by(&self, by: &str, query: &str) -> CredentialSearchResult
pub fn by(&self, by: &str, query: &str) -> CredentialSearchResult
Specifies what parameter to search by and the query string
Can return a SearchError
§Example
let search = keyring_search::Search::new().unwrap();
let results = search.by("user", "Mr. Foo Bar");Auto Trait Implementations§
impl Freeze for Search
impl !RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl !UnwindSafe for Search
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