[−][src]Struct security_framework::item::ItemSearchOptions
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]
fn default() -> ItemSearchOptions
[src]
impl ItemSearchOptionsExt for ItemSearchOptions
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,