pub enum BadgeColor {
Primary,
Error,
Success,
Warning,
Neutral,
Custom(Color32, Color32),
}Expand description
Badge color variants following Material Design 3 specifications
Variants§
Primary
Primary color badge (uses primary theme color)
Error
Error/danger color badge (red, for alerts and errors)
Success
Success color badge (green, for positive states)
Warning
Warning color badge (yellow/orange, for caution)
Neutral
Neutral/gray color badge (for general information)
Custom(Color32, Color32)
Custom color badge
Trait Implementations§
Source§impl Clone for BadgeColor
impl Clone for BadgeColor
Source§fn clone(&self) -> BadgeColor
fn clone(&self) -> BadgeColor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BadgeColor
impl Debug for BadgeColor
Source§impl PartialEq for BadgeColor
impl PartialEq for BadgeColor
impl Copy for BadgeColor
impl StructuralPartialEq for BadgeColor
Auto Trait Implementations§
impl Freeze for BadgeColor
impl RefUnwindSafe for BadgeColor
impl Send for BadgeColor
impl Sync for BadgeColor
impl Unpin for BadgeColor
impl UnsafeUnpin for BadgeColor
impl UnwindSafe for BadgeColor
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