#[repr(u8)]pub enum Importance {
None = 0,
Min = 1,
Low = 2,
Default = 3,
High = 4,
}Expand description
How much the notifications of a Channel interrupt the user.
It maps to the NotificationManager.IMPORTANCE_* constants and is serialized as its
integer value. Only available on Android.
Variants§
None = 0
The notifications are not shown.
Min = 1
The notifications are only shown in the shade, below the fold, without a status bar icon.
Low = 2
The notifications are shown without a sound.
Default = 3
The notifications are shown and make a sound.
This is the value used when the channel does not define an importance.
High = 4
The notifications are shown, make a sound and pop up as a heads-up notification.
Trait Implementations§
Source§impl Clone for Importance
impl Clone for Importance
impl Copy for Importance
Source§impl Debug for Importance
impl Debug for Importance
Source§impl Default for Importance
impl Default for Importance
Source§impl<'de> Deserialize<'de> for Importance
impl<'de> Deserialize<'de> for Importance
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Importance
impl RefUnwindSafe for Importance
impl Send for Importance
impl Sync for Importance
impl Unpin for Importance
impl UnsafeUnpin for Importance
impl UnwindSafe for Importance
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