#[repr(i64)]pub enum CNAuthorizationStatus {
NotDetermined = 0,
Restricted = 1,
Denied = 2,
Authorized = 3,
}
Expand description
An authorization status the user can grant for an app to access the specified entity type.
Variants§
NotDetermined = 0
The user has not yet made a choice regarding whether the application may access contact data.
Restricted = 1
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.
Denied = 2
The user explicitly denied access to contact data for the application.
Authorized = 3
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CNAuthorizationStatus
impl Debug for CNAuthorizationStatus
Source§impl PartialEq for CNAuthorizationStatus
impl PartialEq for CNAuthorizationStatus
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