#[repr(C)]pub struct CNContactFetchRequest {
pub ptr: Id<Object>,
}Expand description
An object that defines the options to use when fetching contacts.
Fields§
§ptr: Id<Object>The raw pointer to the Objective-C object.
Implementations§
Source§impl CNContactFetchRequest
impl CNContactFetchRequest
Sourcepub fn init_with_keys_to_fetch(&self, keys: NSArray<id>) -> Self
pub fn init_with_keys_to_fetch(&self, keys: NSArray<id>) -> Self
Creates a fetch request for the specified keys.
Sourcepub fn predicate(&self) -> NSPredicate
pub fn predicate(&self) -> NSPredicate
The predicate to match contacts against.
Sourcepub fn set_predicate(&mut self, predicate: NSPredicate)
pub fn set_predicate(&mut self, predicate: NSPredicate)
Sets the predicate to match contacts against.
Sourcepub fn mutable_objects(&self) -> bool
pub fn mutable_objects(&self) -> bool
Configuring the Fetch Options
Sourcepub fn set_mutable_objects(&mut self, mutable_objects: bool)
pub fn set_mutable_objects(&mut self, mutable_objects: bool)
Sets whether the fetch request should return mutable objects.
Sourcepub fn unify_results(&self) -> bool
pub fn unify_results(&self) -> bool
A Boolean value that indicates whether to return linked contacts as unified contacts.
Sourcepub fn set_unify_results(&mut self, unify_results: bool)
pub fn set_unify_results(&mut self, unify_results: bool)
Sets whether to return linked contacts as unified contacts.
Sourcepub fn sort_order(&self) -> CNContactSortOrder
pub fn sort_order(&self) -> CNContactSortOrder
The sort order for contacts.
Sourcepub fn keys_to_fetch(&self) -> NSArray<id>
pub fn keys_to_fetch(&self) -> NSArray<id>
The properties to fetch in the returned contacts.
Sourcepub fn set_keys_to_fetch(&mut self, keys_to_fetch: NSArray<id>)
pub fn set_keys_to_fetch(&mut self, keys_to_fetch: NSArray<id>)
Sets the properties to fetch in the returned contacts.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T.