pub struct ColorConfig {
pub error: String,
pub warn: String,
pub info: String,
pub debug: String,
pub trace: String,
pub timestamp: String,
pub target: String,
pub file: String,
pub message: String,
}Expand description
终端颜色配置
Fields§
§error: String错误级别颜色 (ANSI颜色代码)
warn: String警告级别颜色
info: String信息级别颜色
debug: String调试级别颜色
trace: String跟踪级别颜色
timestamp: String时间戳颜色
target: String目标颜色
file: String文件名颜色
message: 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 · 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
Source§impl Default for ColorConfig
impl Default for ColorConfig
Source§impl<'de> Deserialize<'de> for ColorConfig
impl<'de> Deserialize<'de> for ColorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColorConfig
impl RefUnwindSafe for ColorConfig
impl Send for ColorConfig
impl Sync for ColorConfig
impl Unpin 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