pub struct LogConf {
pub level: Option<String>,
pub encoding: Option<String>,
pub file: Option<String>,
}Expand description
轻量日志配置:先对齐结构入口,字段后续可逐步细化。
Fields§
§level: Option<String>§encoding: Option<String>§file: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConf
impl<'de> Deserialize<'de> for LogConf
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 LogConf
impl RefUnwindSafe for LogConf
impl Send for LogConf
impl Sync for LogConf
impl Unpin for LogConf
impl UnwindSafe for LogConf
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