Struct security_framework::item::ItemSearchOptions
source · pub struct ItemSearchOptions { /* private fields */ }Expand description
A builder type to search for items in keychains.
Implementations§
source§impl ItemSearchOptions
impl ItemSearchOptions
sourcepub fn class(&mut self, class: ItemClass) -> &mut Self
pub fn class(&mut self, class: ItemClass) -> &mut Self
Search only for items of the specified class.
sourcepub fn load_refs(&mut self, load_refs: bool) -> &mut Self
pub fn load_refs(&mut self, load_refs: bool) -> &mut Self
Load Security Framework objects (SecCertificate, SecKey, etc) for
the results.
sourcepub fn load_attributes(&mut self, load_attributes: bool) -> &mut Self
pub fn load_attributes(&mut self, load_attributes: bool) -> &mut Self
Load Security Framework object attributes for the results.
sourcepub fn load_data(&mut self, load_data: bool) -> &mut Self
pub fn load_data(&mut self, load_data: bool) -> &mut Self
Load Security Framework objects data for the results.
sourcepub fn limit<T: Into<Limit>>(&mut self, limit: T) -> &mut Self
pub fn limit<T: Into<Limit>>(&mut self, limit: T) -> &mut Self
Limit the number of search results.
If this is not called, the default limit is 1.
sourcepub fn access_group_token(&mut self) -> &mut Self
pub fn access_group_token(&mut self) -> &mut Self
Sets kSecAttrAccessGroup to kSecAttrAccessGroupToken
sourcepub fn search(&self) -> Result<Vec<SearchResult>>
pub fn search(&self) -> Result<Vec<SearchResult>>
Search for objects.
Trait Implementations§
source§impl Default for ItemSearchOptions
impl Default for ItemSearchOptions
source§fn default() -> ItemSearchOptions
fn default() -> ItemSearchOptions
Returns the “default value” for a type. Read more