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