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

Initializes a instance of a Notification.

Sets the notification body.

Sets the notification title.

Sets the notification icon.

Shows the notification.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.