#[repr(transparent)]pub struct CNAuthorizationStatus(pub NSInteger);Available on crate feature
CNContactStore only.Expand description
The authorization the user has given the application to access an entity type.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CNAuthorizationStatus
impl CNAuthorizationStatus
Sourcepub const NotDetermined: Self
pub const NotDetermined: Self
The user has not yet made a choice regarding whether the application may access contact data.
Sourcepub const Restricted: Self
pub const Restricted: Self
The application is not authorized to access contact data. The user cannot change this application’s status, possibly due to active restrictions such as parental controls being in place.
Sourcepub const Authorized: Self
pub const Authorized: Self
The application is authorized to access contact data.
Trait Implementations§
Source§impl Clone for CNAuthorizationStatus
impl Clone for CNAuthorizationStatus
Source§fn clone(&self) -> CNAuthorizationStatus
fn clone(&self) -> CNAuthorizationStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CNAuthorizationStatus
impl Debug for CNAuthorizationStatus
Source§impl Encode for CNAuthorizationStatus
impl Encode for CNAuthorizationStatus
Source§impl Hash for CNAuthorizationStatus
impl Hash for CNAuthorizationStatus
Source§impl Ord for CNAuthorizationStatus
impl Ord for CNAuthorizationStatus
Source§fn cmp(&self, other: &CNAuthorizationStatus) -> Ordering
fn cmp(&self, other: &CNAuthorizationStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CNAuthorizationStatus
impl PartialEq for CNAuthorizationStatus
Source§impl PartialOrd for CNAuthorizationStatus
impl PartialOrd for CNAuthorizationStatus
Source§impl RefEncode for CNAuthorizationStatus
impl RefEncode for CNAuthorizationStatus
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CNAuthorizationStatus
impl Eq for CNAuthorizationStatus
impl StructuralPartialEq for CNAuthorizationStatus
Auto Trait Implementations§
impl Freeze for CNAuthorizationStatus
impl RefUnwindSafe for CNAuthorizationStatus
impl Send for CNAuthorizationStatus
impl Sync for CNAuthorizationStatus
impl Unpin for CNAuthorizationStatus
impl UnwindSafe for CNAuthorizationStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.