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

pub struct ItemSearchOptions { /* fields omitted */ }

A builder type to search for items in keychains.

Implementations

impl ItemSearchOptions[src]

pub fn new() -> Self[src]

Creates a new builder with default options.

pub fn class(&mut self, class: ItemClass) -> &mut Self[src]

Search only for items of the specified class.

pub fn load_refs(&mut self, load_refs: bool) -> &mut Self[src]

Load Security Framework objects (SecCertificate, SecKey, etc) for the results.

pub fn load_attributes(&mut self, load_attributes: bool) -> &mut Self[src]

Load Security Framework object attributes for the results.

pub fn load_data(&mut self, load_data: bool) -> &mut Self[src]

Load Security Framework objects data for the results.

pub fn limit(&mut self, limit: i64) -> &mut Self[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 Self[src]

Search for an item with the given label.

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

Search for objects.

Trait Implementations

impl Default for ItemSearchOptions[src]

impl ItemSearchOptionsExt for ItemSearchOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.