pub struct NotificationRequest {
pub title: String,
pub body: String,
pub navigate_path: Option<String>,
pub sound_enabled: bool,
pub sound_name: Option<String>,
pub bypass_do_not_disturb: bool,
}Fields§
§title: String§body: StringWhere the click should navigate; also the sound-throttle key (falls back to the title).
sound_enabled: bool§sound_name: Option<String>§bypass_do_not_disturb: boolPost even while the shell’s Do-Not-Disturb (manual or an automatic meeting) is in effect.
Default false. The OS Focus mode is not bypassed.
Trait Implementations§
Source§impl Clone for NotificationRequest
impl Clone for NotificationRequest
Source§impl Debug for NotificationRequest
impl Debug for NotificationRequest
Source§impl<'de> Deserialize<'de> for NotificationRequest
impl<'de> Deserialize<'de> for NotificationRequest
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 NotificationRequest
impl RefUnwindSafe for NotificationRequest
impl Send for NotificationRequest
impl Sync for NotificationRequest
impl Unpin for NotificationRequest
impl UnsafeUnpin for NotificationRequest
impl UnwindSafe for NotificationRequest
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