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 strColor for critical messages
error: &'static strColor for error messages
warning: &'static strColor for warning messages
info: &'static strColor for info messages
debug: &'static strColor for debug messages
trace: &'static strColor 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