[−][src]Struct security_framework::item::ItemSearchOptions
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]
&mut self,
load_attributes: bool
) -> &mut ItemSearchOptions
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]
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions
[src]
impl Default for ItemSearchOptions
[src]
fn default() -> 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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,