pub struct JsonFormatConfig {
pub time_format: String,
pub pretty: bool,
pub include_caller: bool,
pub include_thread: bool,
}Expand description
JSON格式配置
Fields§
§time_format: String时间格式
pretty: bool是否美化输出
include_caller: bool是否包含调用者信息
include_thread: bool是否包含线程信息
Trait Implementations§
Source§impl Clone for JsonFormatConfig
impl Clone for JsonFormatConfig
Source§fn clone(&self) -> JsonFormatConfig
fn clone(&self) -> JsonFormatConfig
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 JsonFormatConfig
impl Debug for JsonFormatConfig
Source§impl<'de> Deserialize<'de> for JsonFormatConfig
impl<'de> Deserialize<'de> for JsonFormatConfig
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 JsonFormatConfig
impl RefUnwindSafe for JsonFormatConfig
impl Send for JsonFormatConfig
impl Sync for JsonFormatConfig
impl Unpin for JsonFormatConfig
impl UnwindSafe for JsonFormatConfig
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