Struct tauri::api::notification::Notification [−][src]
pub struct Notification { /* fields omitted */ }
Expand description
The Notification definition. Allows you to construct a Notification data and send it.
Example
use tauri::api::notification::Notification; // shows a notification with the given title and body Notification::new("studio.tauri.example") .title("New message") .body("You've got a new message.") .show();
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification