pub struct LogFieldsConfig {
pub enabled: bool,
pub mappings: HashMap<String, String>,
}Expand description
日志字段规范化配置
Fields§
§enabled: bool是否启用字段规范化
mappings: HashMap<String, String>字段映射规则(可选)
Trait Implementations§
Source§impl Clone for LogFieldsConfig
impl Clone for LogFieldsConfig
Source§fn clone(&self) -> LogFieldsConfig
fn clone(&self) -> LogFieldsConfig
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 LogFieldsConfig
impl Debug for LogFieldsConfig
Source§impl Default for LogFieldsConfig
impl Default for LogFieldsConfig
Source§impl<'de> Deserialize<'de> for LogFieldsConfig
impl<'de> Deserialize<'de> for LogFieldsConfig
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 LogFieldsConfig
impl RefUnwindSafe for LogFieldsConfig
impl Send for LogFieldsConfig
impl Sync for LogFieldsConfig
impl Unpin for LogFieldsConfig
impl UnwindSafe for LogFieldsConfig
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