pub struct NotificationShow {
pub level: NotificationLevel,
pub message: String,
pub duration_ms: Option<u64>,
pub source: Option<String>,
}Expand description
Event to show a notification
Fields§
§level: NotificationLevelSeverity level
message: StringMessage content
duration_ms: Option<u64>Duration in milliseconds (None = use default)
source: Option<String>Optional source label
Implementations§
Trait Implementations§
Source§impl Clone for NotificationShow
impl Clone for NotificationShow
Source§fn clone(&self) -> NotificationShow
fn clone(&self) -> NotificationShow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationShow
impl Debug for NotificationShow
Auto Trait Implementations§
impl Freeze for NotificationShow
impl RefUnwindSafe for NotificationShow
impl Send for NotificationShow
impl Sync for NotificationShow
impl Unpin for NotificationShow
impl UnwindSafe for NotificationShow
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