#[repr(C)]pub struct CNMutablePostalAddress {
pub ptr: Id<Object>,
}
Expand description
A mutable representation of the postal address for a contact.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl CNMutablePostalAddress
impl CNMutablePostalAddress
Sourcepub fn set_street(&mut self, street: NSString)
pub fn set_street(&mut self, street: NSString)
The street name of the address.
Sourcepub fn set_postal_code(&mut self, postal_code: NSString)
pub fn set_postal_code(&mut self, postal_code: NSString)
The postal code of the address.
Sourcepub fn set_country(&mut self, country: NSString)
pub fn set_country(&mut self, country: NSString)
The country or region name of the address.
Sourcepub fn set_iso_country_code(&mut self, iso_country_code: NSString)
pub fn set_iso_country_code(&mut self, iso_country_code: NSString)
The ISO country code, using the ISO 3166-1 alpha-2 standard.
Sourcepub fn set_sub_administrative_area(&mut self, sub_administrative_area: NSString)
pub fn set_sub_administrative_area(&mut self, sub_administrative_area: NSString)
The subadministrative area (such as a county or other region) in a postal address.
Sourcepub fn set_sub_locality(&mut self, sub_locality: NSString)
pub fn set_sub_locality(&mut self, sub_locality: NSString)
Additional information associated with the location, typically defined at the city or town level, in a postal address.
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
.