Enum AlertType

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 str

Returns the default title for an alert type

fn css_class(&self, style: AlertStyleType) -> &'static str

Returns the CSS class to use for an alert type

Trait Implementations

impl Clone for AlertType

fn clone(&self) -> AlertType

impl Copy for AlertType

impl Debug for AlertType

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for AlertType

fn default() -> AlertType

impl Eq for AlertType

impl PartialEq for AlertType

fn eq(&self, other: &AlertType) -> bool

impl StructuralPartialEq for AlertType

Auto Trait Implementations

impl Freeze for AlertType

impl RefUnwindSafe for AlertType

impl Send for AlertType

impl Sync for AlertType

impl Unpin for AlertType

impl UnsafeUnpin for AlertType

impl UnwindSafe for AlertType

Blanket Implementations

impl<T> Any for AlertType where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AlertType where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AlertType where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for AlertType where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for AlertType

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AlertType where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for AlertType where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AlertType where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AlertType where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>