pub struct NotificationBuilder { /* private fields */ }Expand description
Fluent builder for rich cross-platform native OS notifications.
Implementations§
Source§impl NotificationBuilder
impl NotificationBuilder
pub fn new(title: impl Into<String>, body: impl Into<String>) -> Self
pub fn app_name(self, name: impl Into<String>) -> Self
pub fn subtitle(self, subtitle: impl Into<String>) -> Self
pub fn icon(self, icon: impl Into<String>) -> Self
pub fn urgency(self, urgency: NotificationUrgency) -> Self
pub fn category(self, category: impl Into<String>) -> Self
pub fn timeout_ms(self, ms: i32) -> Self
pub fn replaces_id(self, id: u32) -> Self
pub fn action(self, id: impl Into<String>, label: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for NotificationBuilder
impl Clone for NotificationBuilder
Auto Trait Implementations§
impl Forget for NotificationBuilder
impl Freeze for NotificationBuilder
impl Move for NotificationBuilder
impl RefUnwindSafe for NotificationBuilder
impl Send for NotificationBuilder
impl Sync for NotificationBuilder
impl Unpin for NotificationBuilder
impl UnsafeUnpin for NotificationBuilder
impl UnwindSafe for NotificationBuilder
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