pub struct TextFormatConfig {
pub time_format: String,
pub show_level: bool,
pub show_target: bool,
pub show_thread_id: bool,
pub show_file: bool,
pub show_line: bool,
}
Expand description
文本格式配置
Fields§
§time_format: String
时间格式
show_level: bool
是否显示级别
show_target: bool
是否显示目标
show_thread_id: bool
是否显示线程ID
show_file: bool
是否显示文件名
show_line: bool
是否显示行号
Trait Implementations§
Source§impl Clone for TextFormatConfig
impl Clone for TextFormatConfig
Source§fn clone(&self) -> TextFormatConfig
fn clone(&self) -> TextFormatConfig
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 TextFormatConfig
impl Debug for TextFormatConfig
Source§impl<'de> Deserialize<'de> for TextFormatConfig
impl<'de> Deserialize<'de> for TextFormatConfig
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 TextFormatConfig
impl RefUnwindSafe for TextFormatConfig
impl Send for TextFormatConfig
impl Sync for TextFormatConfig
impl Unpin for TextFormatConfig
impl UnwindSafe for TextFormatConfig
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