[−][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 ItemSearchOptions
pub fn new() -> ItemSearchOptions
[src]
pub fn new() -> ItemSearchOptions
Creates a new builder with default options.
pub fn class(&mut self, class: ItemClass) -> &mut ItemSearchOptions
[src]
pub fn class(&mut self, class: ItemClass) -> &mut ItemSearchOptions
Search 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 ItemSearchOptions
Deprecated.
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 ItemSearchOptions
Load 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 ItemSearchOptions
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]
pub fn label(&mut self, label: &str) -> &mut ItemSearchOptions
Search 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 ItemSearchOptions
fn default() -> ItemSearchOptions
[src]
fn default() -> ItemSearchOptions
Returns the "default value" for a type. Read more
impl ItemSearchOptionsExt for ItemSearchOptions
[src]
impl ItemSearchOptionsExt for ItemSearchOptions
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions
[src]
fn keychains(&mut self, keychains: &[SecKeychain]) -> &mut ItemSearchOptions
Search within the specified keychains. Read more
Auto Trait Implementations
impl !Send for ItemSearchOptions
impl !Send for ItemSearchOptions
impl !Sync for ItemSearchOptions
impl !Sync for ItemSearchOptions
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<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 T
Mutably 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