#[repr(C)]pub struct CNSaveRequest {
pub ptr: Id<Object>,
}Expand description
An object that collects the changes you want to save to the user’s contacts database.
Fields§
§ptr: Id<Object>The raw pointer to the Objective-C object.
Implementations§
Source§impl CNSaveRequest
impl CNSaveRequest
Sourcepub fn add_contact_to_container_with_identifier<Contact>(
&self,
contact: Contact,
identifier: Option<NSString>,
)where
Contact: ICNContact,
pub fn add_contact_to_container_with_identifier<Contact>(
&self,
contact: Contact,
identifier: Option<NSString>,
)where
Contact: ICNContact,
Sourcepub fn update_contact(&self, contact: CNMutableContact)
pub fn update_contact(&self, contact: CNMutableContact)
Updates an existing contact in the contact store.
Sourcepub fn delete_contact(&self, contact: CNMutableContact)
pub fn delete_contact(&self, contact: CNMutableContact)
Removes the specified contact from the contact store.
Sourcepub fn add_group_to_container_with_identifier(
&self,
group: CNMutableGroup,
identifier: NSString,
)
pub fn add_group_to_container_with_identifier( &self, group: CNMutableGroup, identifier: NSString, )
Adds a group to the contact store.
Sourcepub fn update_group(&self, group: CNMutableGroup)
pub fn update_group(&self, group: CNMutableGroup)
Updates an existing group in the contact store.
Sourcepub fn delete_group(&self, group: CNMutableGroup)
pub fn delete_group(&self, group: CNMutableGroup)
Deletes a group from the contact store.
Sourcepub fn add_member_to_group<Contact, Group>(
&self,
contact: Contact,
group: Group,
)where
Contact: ICNContact,
Group: ICNGroup,
pub fn add_member_to_group<Contact, Group>(
&self,
contact: Contact,
group: Group,
)where
Contact: ICNContact,
Group: ICNGroup,
Adds a contact as a member of a group.
Sourcepub fn remove_member_from_group<Contact, Group>(
&self,
contact: Contact,
group: Group,
)where
Contact: ICNContact,
Group: ICNGroup,
pub fn remove_member_from_group<Contact, Group>(
&self,
contact: Contact,
group: Group,
)where
Contact: ICNContact,
Group: ICNGroup,
Removes a contact from a group.
Sourcepub fn add_subgroup_to_group<Group, ParentGroup>(
&self,
group: Group,
parent_group: ParentGroup,
)
pub fn add_subgroup_to_group<Group, ParentGroup>( &self, group: Group, parent_group: ParentGroup, )
Add the specified group to a parent group.
Sourcepub fn remove_subgroup_from_group<Group, ParentGroup>(
&self,
group: Group,
parent_group: ParentGroup,
)
pub fn remove_subgroup_from_group<Group, ParentGroup>( &self, group: Group, parent_group: ParentGroup, )
Remove a subgroup from the specified parent group.
Sourcepub fn should_refetch_contacts(&self) -> bool
pub fn should_refetch_contacts(&self) -> bool
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.