pub struct DebugConfig {
pub enabled: bool,
pub log_file: Option<PathBuf>,
pub log_bodies: bool,
pub redact_sensitive: bool,
}Expand description
Configuration for debug logging
Fields§
§enabled: boolWhether debug logging is enabled
log_file: Option<PathBuf>Optional file path to write debug logs
log_bodies: boolWhether to log request/response bodies
redact_sensitive: boolWhether to redact sensitive information (passwords, tokens)
Implementations§
Source§impl DebugConfig
impl DebugConfig
Sourcepub fn with_log_file(self, path: PathBuf) -> Self
pub fn with_log_file(self, path: PathBuf) -> Self
Enable logging to a file
Sourcepub fn without_bodies(self) -> Self
pub fn without_bodies(self) -> Self
Disable body logging
Sourcepub fn without_redaction(self) -> Self
pub fn without_redaction(self) -> Self
Disable sensitive data redaction (use with caution!)
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§fn clone(&self) -> DebugConfig
fn clone(&self) -> DebugConfig
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 DebugConfig
impl Debug for DebugConfig
Auto Trait Implementations§
impl Freeze for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfig
impl Sync for DebugConfig
impl Unpin for DebugConfig
impl UnwindSafe for DebugConfig
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