pub struct ConfigBuilder { /* private fields */ }Expand description
配置构建器
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn time_format<S: Into<String>>(self, format: S) -> Self
pub fn time_format<S: Into<String>>(self, format: S) -> Self
设置时间格式
Sourcepub fn highlight_keywords(self, keywords: Vec<String>) -> Self
pub fn highlight_keywords(self, keywords: Vec<String>) -> Self
添加关键词高亮
Sourcepub fn add_filter(self, filter_type: FilterType, rule: String) -> Self
pub fn add_filter(self, filter_type: FilterType, rule: String) -> Self
添加过滤器
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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