pub struct LoggingFilterConfig {
pub log_request_headers: bool,
pub log_request_body: bool,
pub log_response_headers: bool,
pub log_response_body: bool,
pub log_level: String,
pub max_body_size: usize,
}
Expand description
Configuration for a logging filter.
Fields§
§log_request_headers: bool
Whether to log request headers
log_request_body: bool
Whether to log request body
log_response_headers: bool
Whether to log response headers
log_response_body: bool
Whether to log response body
log_level: String
Log level to use
max_body_size: usize
Maximum body size to log (in bytes)
Trait Implementations§
Source§impl Clone for LoggingFilterConfig
impl Clone for LoggingFilterConfig
Source§fn clone(&self) -> LoggingFilterConfig
fn clone(&self) -> LoggingFilterConfig
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 LoggingFilterConfig
impl Debug for LoggingFilterConfig
Source§impl Default for LoggingFilterConfig
impl Default for LoggingFilterConfig
Source§impl<'de> Deserialize<'de> for LoggingFilterConfig
impl<'de> Deserialize<'de> for LoggingFilterConfig
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 LoggingFilterConfig
impl RefUnwindSafe for LoggingFilterConfig
impl Send for LoggingFilterConfig
impl Sync for LoggingFilterConfig
impl Unpin for LoggingFilterConfig
impl UnwindSafe for LoggingFilterConfig
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