pub struct LogConfig {
pub level: LogLevel,
pub log_requests: bool,
pub log_responses: bool,
pub log_responses_err: bool,
pub log_sensitive_data: bool,
pub log_performance: bool,
}Expand description
Log configuration
Fields§
§level: LogLevelLog level
log_requests: boolWhether to log request parameters
log_responses: boolWhether to log response content
log_responses_err: bool§log_sensitive_data: boolWhether to log sensitive data (such as token)
log_performance: boolWhether to log performance metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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