pub struct TextFormatter {
pub template: String,
}Expand description
文本格式化器:输出可读的文本行
Fields§
§template: String格式模板,支持占位符 {level}, {target}, {message}, {timestamp}
Implementations§
Source§impl TextFormatter
impl TextFormatter
Trait Implementations§
Source§impl Clone for TextFormatter
impl Clone for TextFormatter
Source§fn clone(&self) -> TextFormatter
fn clone(&self) -> TextFormatter
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 TextFormatter
impl Debug for TextFormatter
Source§impl Default for TextFormatter
impl Default for TextFormatter
Auto Trait Implementations§
impl Freeze for TextFormatter
impl RefUnwindSafe for TextFormatter
impl Send for TextFormatter
impl Sync for TextFormatter
impl Unpin for TextFormatter
impl UnsafeUnpin for TextFormatter
impl UnwindSafe for TextFormatter
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