pub struct ColorPalette {
pub critical: &'static str,
pub error: &'static str,
pub warning: &'static str,
pub info: &'static str,
pub debug: &'static str,
pub trace: &'static str,
}
Expand description
Hexadecimal color codes
Fields§
§critical: &'static str
Color for critical messages
error: &'static str
Color for error messages
warning: &'static str
Color for warning messages
info: &'static str
Color for info messages
debug: &'static str
Color for debug messages
trace: &'static str
Color for trace messages
Implementations§
Source§impl ColorPalette
impl ColorPalette
Sourcepub fn level_to_color(&self, level: Level) -> &'static str
pub fn level_to_color(&self, level: Level) -> &'static str
Returns the corresponding color for an slog level
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorPalette
impl RefUnwindSafe for ColorPalette
impl Send for ColorPalette
impl Sync for ColorPalette
impl Unpin for ColorPalette
impl UnwindSafe for ColorPalette
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