pub enum AuthorizationStatus {
NotDetermined,
Denied,
Authorized,
Provisional,
Ephemeral,
Unknown,
}Expand description
The app’s authorization to post notifications.
Returned by get_notification_settings and blocking::get_notification_settings.
Variants§
NotDetermined
The user has not made a choice yet.
Denied
The user denied permission.
Authorized
The user granted permission.
Provisional
Provisional authorization (notifications delivered quietly).
Ephemeral
Ephemeral authorization (granted by App Clips).
Unknown
An unknown status code was returned by the OS.
Trait Implementations§
Source§impl Clone for AuthorizationStatus
impl Clone for AuthorizationStatus
Source§fn clone(&self) -> AuthorizationStatus
fn clone(&self) -> AuthorizationStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthorizationStatus
Source§impl Debug for AuthorizationStatus
impl Debug for AuthorizationStatus
impl Eq for AuthorizationStatus
Source§impl From<UNAuthorizationStatus> for AuthorizationStatus
impl From<UNAuthorizationStatus> for AuthorizationStatus
Source§fn from(status: UNAuthorizationStatus) -> Self
fn from(status: UNAuthorizationStatus) -> Self
Converts to this type from the input type.
Source§impl Hash for AuthorizationStatus
impl Hash for AuthorizationStatus
Source§impl PartialEq for AuthorizationStatus
impl PartialEq for AuthorizationStatus
Source§fn eq(&self, other: &AuthorizationStatus) -> bool
fn eq(&self, other: &AuthorizationStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorizationStatus
Auto Trait Implementations§
impl Freeze for AuthorizationStatus
impl RefUnwindSafe for AuthorizationStatus
impl Send for AuthorizationStatus
impl Sync for AuthorizationStatus
impl Unpin for AuthorizationStatus
impl UnsafeUnpin for AuthorizationStatus
impl UnwindSafe for AuthorizationStatus
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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