[][src]Struct security_framework::item::ItemSearchOptions

pub struct ItemSearchOptions { /* fields omitted */ }

A builder type to search for items in keychains.

Methods

impl ItemSearchOptions[src]

pub fn new() -> ItemSearchOptions[src]

Creates a new builder with default options.

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]

Deprecated.

Replaced by os::macos::item::ItemSearchOptionsExt::keychains.

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]

Load Security Framework object attributes for the results.

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]

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]

Search for an item with the given label.

pub fn search(&self) -> Result<Vec<SearchResult>>[src]

Search for objects.

Trait Implementations

impl ItemSearchOptionsExt for ItemSearchOptions[src]

impl Default for ItemSearchOptions[src]

Auto Trait Implementations

impl !Send for ItemSearchOptions

impl !Sync for ItemSearchOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.