pub struct ColorConfig {
pub enabled: bool,
pub theme: ColorTheme,
pub level_colors: LevelColors,
pub keyword_colors: HashMap<String, String>,
pub timestamp_color: String,
pub filename_color: String,
pub line_number_color: String,
}Expand description
颜色配置
Fields§
§enabled: bool是否启用颜色
theme: ColorTheme颜色主题
level_colors: LevelColors级别颜色
keyword_colors: HashMap<String, String>关键词颜色映射
timestamp_color: String时间戳颜色
filename_color: String文件名颜色
line_number_color: String行号颜色
Trait Implementations§
Source§impl Clone for ColorConfig
impl Clone for ColorConfig
Source§fn clone(&self) -> ColorConfig
fn clone(&self) -> ColorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorConfig
impl Debug for ColorConfig
Auto Trait Implementations§
impl Freeze for ColorConfig
impl RefUnwindSafe for ColorConfig
impl Send for ColorConfig
impl Sync for ColorConfig
impl Unpin for ColorConfig
impl UnsafeUnpin for ColorConfig
impl UnwindSafe for ColorConfig
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