[−][src]Struct security_framework::item::ItemSearchOptions
pub struct ItemSearchOptions { /* fields omitted */ }A builder type to search for items in keychains.
Methods
impl ItemSearchOptions[src]
impl ItemSearchOptionspub fn new() -> ItemSearchOptions[src]
pub fn new() -> ItemSearchOptionsCreates a new builder with default options.
pub fn class(&mut self, class: ItemClass) -> &mut ItemSearchOptions[src]
pub fn class(&mut self, class: ItemClass) -> &mut ItemSearchOptionsSearch 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 ItemSearchOptionsDeprecated.
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 ItemSearchOptionsLoad Security Framework objects (SecCertificate, SecKey, etc) for
the results.
pub fn limit(&mut self, limit: i64) -> &mut ItemSearchOptions[src]
pub fn limit(&mut self, limit: i64) -> &mut ItemSearchOptionsLimit 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 ItemSearchOptionsSearch for an item with the given label.
pub fn search(&self) -> Result<Vec<SearchResult>>[src]
pub fn search(&self) -> Result<Vec<SearchResult>>Search for objects.
Trait Implementations
impl Default for ItemSearchOptions[src]
impl Default for ItemSearchOptionsfn default() -> ItemSearchOptions[src]
fn default() -> ItemSearchOptionsReturns the "default value" for a type. Read more
impl ItemSearchOptionsExt for ItemSearchOptions[src]
impl ItemSearchOptionsExt for ItemSearchOptionsfn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions[src]
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptionsSearch within the specified keychains. Read more
Auto Trait Implementations
impl !Send for ItemSearchOptions
impl !Send for ItemSearchOptionsimpl !Sync for ItemSearchOptions
impl !Sync for ItemSearchOptionsBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more