Struct security_framework::item::ItemSearchOptions
[−]
[src]
pub struct ItemSearchOptions { /* fields omitted */ }
A builder type to search for items in keychains.
Methods
impl ItemSearchOptions
[src]
fn new() -> ItemSearchOptions
Creates a new builder with default options.
fn class(&mut self, class: ItemClass) -> &mut ItemSearchOptions
Search only for items of the specified class.
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions
Deprecated.
Replaced by os::macos::item::ItemSearchOptionsExt::keychains
.
fn load_refs(&mut self, load_refs: bool) -> &mut ItemSearchOptions
Load Security Framework objects (SecCertificate
, SecKey
, etc) for
the results.
fn limit(&mut self, limit: i64) -> &mut ItemSearchOptions
Limit the number of search results.
If this is not called, the default limit is 1.
fn label(&mut self, label: &str) -> &mut ItemSearchOptions
Search for an item with the given label.
fn search(&self) -> Result<Vec<SearchResult>>
Search for objects.
Trait Implementations
impl Default for ItemSearchOptions
[src]
fn default() -> ItemSearchOptions
Returns the "default value" for a type. Read more
impl ItemSearchOptionsExt for ItemSearchOptions
[src]
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions
Search within the specified keychains. Read more