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]

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 Default for ItemSearchOptions[src]

fn default() -> ItemSearchOptions[src]

Returns the “default value” for a type. Read more

impl ItemSearchOptionsExt for ItemSearchOptions[src]

fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions[src]

Search within the specified keychains. Read more

Auto Trait Implementations

impl RefUnwindSafe for ItemSearchOptions

impl !Send for ItemSearchOptions

impl !Sync for ItemSearchOptions

impl Unpin for ItemSearchOptions

impl UnwindSafe for ItemSearchOptions

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.