#[repr(C)]pub struct CNMutableContact {
pub ptr: Id<Object>,
}
Expand description
A mutable object that stores information about a single contact, such as the contact’s first name, phone numbers, and addresses.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl CNMutableContact
impl CNMutableContact
Sourcepub fn set_name_prefix(&mut self, name_prefix: NSString)
pub fn set_name_prefix(&mut self, name_prefix: NSString)
Sets the name prefix of the contact.
Sourcepub fn set_given_name(&mut self, given_name: NSString)
pub fn set_given_name(&mut self, given_name: NSString)
Sets the given name of the contact.
Sourcepub fn set_middle_name(&mut self, middle_name: NSString)
pub fn set_middle_name(&mut self, middle_name: NSString)
Sets the middle name of the contact.
Sourcepub fn set_family_name(&mut self, family_name: NSString)
pub fn set_family_name(&mut self, family_name: NSString)
Sets the family name of the contact.
Sourcepub fn set_previous_family_name(&mut self, previous_family_name: NSString)
pub fn set_previous_family_name(&mut self, previous_family_name: NSString)
Sets the previous family name of the contact.
Sourcepub fn set_name_suffix(&mut self, name_suffix: NSString)
pub fn set_name_suffix(&mut self, name_suffix: NSString)
Sets the name suffix of the contact.
Sourcepub fn set_nickname(&mut self, nickname: NSString)
pub fn set_nickname(&mut self, nickname: NSString)
Sets the nickname of the contact.
Sourcepub fn set_phonetic_given_name(&mut self, phonetic_given_name: NSString)
pub fn set_phonetic_given_name(&mut self, phonetic_given_name: NSString)
Sets the phonetic given name of the contact.
Sourcepub fn set_phonetic_middle_name(&mut self, phonetic_middle_name: NSString)
pub fn set_phonetic_middle_name(&mut self, phonetic_middle_name: NSString)
Sets the phonetic middle name of the contact.
Sourcepub fn set_phonetic_family_name(&mut self, phonetic_family_name: NSString)
pub fn set_phonetic_family_name(&mut self, phonetic_family_name: NSString)
Sets the phonetic family name of the contact.
Sourcepub fn set_job_title(&mut self, job_title: NSString)
pub fn set_job_title(&mut self, job_title: NSString)
The contact’s job title.
Sourcepub fn set_department_name(&mut self, department_name: NSString)
pub fn set_department_name(&mut self, department_name: NSString)
The name of the department associated with the contact.
Sourcepub fn set_organization_name(&mut self, organization_name: NSString)
pub fn set_organization_name(&mut self, organization_name: NSString)
The name of the organization associated with the contact.
Sourcepub fn set_phonetic_organization_name(
&mut self,
phonetic_organization_name: NSString,
)
pub fn set_phonetic_organization_name( &mut self, phonetic_organization_name: NSString, )
The phonetic name of the organization associated with the contact.
Sourcepub fn set_postal_addresses<PostalAddress>(
&mut self,
postal_addresses: NSArray<CNLabeledValue<PostalAddress>>,
)where
PostalAddress: ICNPostalAddress,
pub fn set_postal_addresses<PostalAddress>(
&mut self,
postal_addresses: NSArray<CNLabeledValue<PostalAddress>>,
)where
PostalAddress: ICNPostalAddress,
An array of labeled postal addresses for a contact.
Sourcepub fn set_email_addresses(
&mut self,
email_addresses: NSArray<CNLabeledValue<NSString>>,
)
pub fn set_email_addresses( &mut self, email_addresses: NSArray<CNLabeledValue<NSString>>, )
An array of labeled email addresses for a contact.
Sourcepub fn set_url_addresses(
&mut self,
url_addresses: NSArray<CNLabeledValue<NSString>>,
)
pub fn set_url_addresses( &mut self, url_addresses: NSArray<CNLabeledValue<NSString>>, )
An array of labeled URL addresses for a contact.
Sourcepub fn set_phone_numbers(
&mut self,
phone_numbers: NSArray<CNLabeledValue<CNPhoneNumber>>,
)
pub fn set_phone_numbers( &mut self, phone_numbers: NSArray<CNLabeledValue<CNPhoneNumber>>, )
An array of labeled phone numbers for a contact.
An array of labeled social profiles for a contact.
Sourcepub fn set_dates(&mut self, dates: NSArray<CNLabeledValue<NSDateComponents>>)
pub fn set_dates(&mut self, dates: NSArray<CNLabeledValue<NSDateComponents>>)
An array containing labeled Gregorian dates.
Sourcepub fn set_non_gregorian_birthday(
&mut self,
non_gregorian_birthday: NSDateComponents,
)
pub fn set_non_gregorian_birthday( &mut self, non_gregorian_birthday: NSDateComponents, )
A date component for the non-Gregorian birthday of the contact.
Sourcepub fn set_birthday(&mut self, birthday: NSDateComponents)
pub fn set_birthday(&mut self, birthday: NSDateComponents)
A date component for the Gregorian birthday of the contact.
Sourcepub fn set_image_data(&mut self, image_data: NSData)
pub fn set_image_data(&mut self, image_data: NSData)
Setting Images
Sourcepub fn set_contact_relations(
&mut self,
contact_relations: NSArray<CNLabeledValue<CNContactRelation>>,
)
pub fn set_contact_relations( &mut self, contact_relations: NSArray<CNLabeledValue<CNContactRelation>>, )
An array of labeled contact relations for the contact.
Sourcepub fn set_instant_messenger_addresses(
&mut self,
instant_messenger_addresses: NSArray<CNLabeledValue<CNInstantMessageAddress>>,
)
pub fn set_instant_messenger_addresses( &mut self, instant_messenger_addresses: NSArray<CNLabeledValue<CNInstantMessageAddress>>, )
An array of labeled IM addresses for the contact.
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
.