grille_pain/toast/level

Define the different levels of toasts. Like logs, toasts have different levels according to their importance. When choosing a level, the toast will use the corresponding theme variables, allowing you to override the default styles.

Types

pub type Level {
  Standard
  Info
  Warning
  Error
  Success
}

Constructors

  • Standard
  • Info
  • Warning
  • Error
  • Success

Functions

pub fn to_string(level: Level) -> String

Mainly internal use, to_string allows you to get the exact representation of the level.

Search Document