pub struct ProxyLoggingConfig {
pub level: String,
pub include_payloads: bool,
pub redact_sensitive: bool,
pub redaction_patterns: Vec<String>,
pub destination: String,
pub file_path: Option<String>,
pub enable_correlation_ids: bool,
pub log_performance_metrics: bool,
}Expand description
Proxy logging configuration for debugging and analysis
Fields§
§level: String§include_payloads: bool§redact_sensitive: bool§redaction_patterns: Vec<String>§destination: String§file_path: Option<String>§enable_correlation_ids: bool§log_performance_metrics: boolImplementations§
Source§impl ProxyLoggingConfig
impl ProxyLoggingConfig
pub fn validate(&self) -> Result<()>
pub fn should_log(&self) -> bool
pub fn should_log_payloads(&self) -> bool
pub fn should_log_debug_info(&self) -> bool
Trait Implementations§
Source§impl Clone for ProxyLoggingConfig
impl Clone for ProxyLoggingConfig
Source§fn clone(&self) -> ProxyLoggingConfig
fn clone(&self) -> ProxyLoggingConfig
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 ProxyLoggingConfig
impl Debug for ProxyLoggingConfig
Source§impl Default for ProxyLoggingConfig
impl Default for ProxyLoggingConfig
Source§impl<'de> Deserialize<'de> for ProxyLoggingConfig
impl<'de> Deserialize<'de> for ProxyLoggingConfig
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 ProxyLoggingConfig
impl RefUnwindSafe for ProxyLoggingConfig
impl Send for ProxyLoggingConfig
impl Sync for ProxyLoggingConfig
impl Unpin for ProxyLoggingConfig
impl UnwindSafe for ProxyLoggingConfig
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