pub struct Notification {
pub id: String,
pub title: String,
pub body: Option<String>,
pub image: Option<IconImage>,
pub actions: Vec<NotificationAction>,
pub silent: bool,
}Expand description
A notification: what the system shows under its id.
Fields§
§id: StringThe app’s own name for it, which a later post replaces and a click names.
title: String§body: Option<String>§image: Option<IconImage>§actions: Vec<NotificationAction>Buttons, and reply fields from NotificationReplies::reply_action, in order.
silent: boolShown without the system’s sound.
Implementations§
Source§impl Notification
impl Notification
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§impl Debug for Notification
impl Debug for Notification
Source§impl PartialEq for Notification
impl PartialEq for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnsafeUnpin for Notification
impl UnwindSafe for Notification
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