pub enum AlertVariant {
Success,
Error,
Default,
Destructive,
}Expand description
The alert variant determining the visual style.
The registry publishes two variants — the quiet default and the destructive one — and the design system keeps its own success and error treatments beside them.
Variants§
Success
A success alert with green styling.
Error
An error alert with red styling.
Default
The registry’s quiet alert on the background surface.
Destructive
The registry’s destructive alert.
Trait Implementations§
Source§impl Clone for AlertVariant
impl Clone for AlertVariant
impl Copy for AlertVariant
Source§impl Debug for AlertVariant
impl Debug for AlertVariant
Source§impl Default for AlertVariant
impl Default for AlertVariant
impl Eq for AlertVariant
Source§impl PartialEq for AlertVariant
impl PartialEq for AlertVariant
impl StructuralPartialEq for AlertVariant
Auto Trait Implementations§
impl Forget for AlertVariant
impl Freeze for AlertVariant
impl Move for AlertVariant
impl RefUnwindSafe for AlertVariant
impl Send for AlertVariant
impl Sync for AlertVariant
impl Unpin for AlertVariant
impl UnsafeUnpin for AlertVariant
impl UnwindSafe for AlertVariant
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