pub struct NotificationSettings {
pub authorization_status: AuthorizationStatus,
pub alert_enabled: NotificationSettingStatus,
pub badge_enabled: NotificationSettingStatus,
pub sound_enabled: NotificationSettingStatus,
pub lock_screen_enabled: NotificationSettingStatus,
pub notification_center_enabled: NotificationSettingStatus,
}Expand description
The current notification settings for the app.
Obtained via get_notification_settings or blocking::get_notification_settings.
Fields§
Whether the app is authorized to post notifications.
alert_enabled: NotificationSettingStatusWhether alert notifications (banners) are enabled.
badge_enabled: NotificationSettingStatusWhether badge updates are enabled.
sound_enabled: NotificationSettingStatusWhether notification sounds are enabled.
lock_screen_enabled: NotificationSettingStatusWhether notifications appear on the lock screen.
notification_center_enabled: NotificationSettingStatusWhether notifications appear in Notification Center.
Trait Implementations§
Source§impl Clone for NotificationSettings
impl Clone for NotificationSettings
Source§fn clone(&self) -> NotificationSettings
fn clone(&self) -> NotificationSettings
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 NotificationSettings
Source§impl Debug for NotificationSettings
impl Debug for NotificationSettings
impl Eq for NotificationSettings
Source§impl PartialEq for NotificationSettings
impl PartialEq for NotificationSettings
Source§fn eq(&self, other: &NotificationSettings) -> bool
fn eq(&self, other: &NotificationSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationSettings
Auto Trait Implementations§
impl Freeze for NotificationSettings
impl RefUnwindSafe for NotificationSettings
impl Send for NotificationSettings
impl Sync for NotificationSettings
impl Unpin for NotificationSettings
impl UnsafeUnpin for NotificationSettings
impl UnwindSafe for NotificationSettings
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