pub struct Palette {
pub info: &'static str,
pub warning: &'static str,
pub critical: &'static str,
pub reset: &'static str,
}Expand description
The muted ANSI color palette backing the three severity levels.
| Severity | Code |
|---|---|
| Info | \x1b[94m |
| Warning | \x1b[33m |
| Critical | \x1b[91m |
Fields§
§info: &'static strSoft light blue — \x1b[94m
warning: &'static strAmber / yellow — \x1b[33m
critical: &'static strBright red — \x1b[91m
reset: &'static strANSI reset — \x1b[0m
Trait Implementations§
impl Copy for Palette
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Forget for Palette
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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