#[repr(i8)]pub enum Visibility {
Secret = -1,
Private = 0,
Public = 1,
}Expand description
How much of a notification is shown on the lock screen.
It maps to the Notification.VISIBILITY_* constants and is serialized as its
integer value. Only available on Android.
Variants§
Secret = -1
The notification is not shown on the lock screen at all.
Private = 0
The notification is shown on the lock screen with its sensitive content hidden.
This is the value used when the channel does not define a visibility.
Public = 1
The notification is shown in full on the lock screen.
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
impl Copy for Visibility
Source§impl Debug for Visibility
impl Debug for Visibility
Source§impl<'de> Deserialize<'de> for Visibility
impl<'de> Deserialize<'de> for Visibility
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 Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnsafeUnpin for Visibility
impl UnwindSafe for Visibility
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