pub enum AlertType {
Note,
Tip,
Important,
Warning,
Caution,
}Expand description
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
Trait Implementations§
impl Copy for AlertType
impl Eq for AlertType
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 UnwindSafe for AlertType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more