pub struct RedactConfig {
pub strip_network_body: bool,
pub strip_network_headers: bool,
pub drop_network: bool,
pub drop_console: bool,
pub scrubbers: Vec<String>,
}Expand description
脱敏配置(来自 tenants.json,scrubbers 为 regex 源码字符串)。
Fields§
§strip_network_body: bool§strip_network_headers: bool§drop_network: bool§drop_console: bool§scrubbers: Vec<String>Implementations§
Source§impl RedactConfig
impl RedactConfig
Sourcepub fn to_opts(&self) -> Result<RedactOpts, String>
pub fn to_opts(&self) -> Result<RedactOpts, String>
编译 scrubbers regex,构建运行时 RedactOpts。
Trait Implementations§
Source§impl Clone for RedactConfig
impl Clone for RedactConfig
Source§impl Debug for RedactConfig
impl Debug for RedactConfig
Source§impl Default for RedactConfig
impl Default for RedactConfig
Source§impl<'de> Deserialize<'de> for RedactConfig
impl<'de> Deserialize<'de> for RedactConfig
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 RedactConfig
impl RefUnwindSafe for RedactConfig
impl Send for RedactConfig
impl Sync for RedactConfig
impl Unpin for RedactConfig
impl UnsafeUnpin for RedactConfig
impl UnwindSafe for RedactConfig
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