Enum AlertType
#[non_exhaustive]
pub enum AlertType
The type of alert.
Variants
-
Note Useful information that users should know, even when skimming content
-
Tip Helpful advice for doing things better or more easily
-
Important Key information users need to know to achieve their goal
-
Warning Urgent info that needs immediate user attention to avoid problems
-
Caution Advises about risks or negative outcomes of certain actions
Implementations
impl AlertType
fn default_title(&self) -> &'static strReturns the default title for an alert type
fn css_class(&self, style: AlertStyleType) -> &'static strReturns the CSS class to use for an alert type
Trait Implementations
impl Clone for AlertType
fn clone(&self) -> Self
impl Copy for AlertType
impl Debug for AlertType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for AlertType
fn default() -> Self
impl Eq for AlertType
impl PartialEq for AlertType
fn eq(&self, other: &Self) -> bool