pub struct RequestLoggerConfig {
pub capture_request_body: bool,
pub capture_response_body: bool,
}Expand description
Configuration for the request logging middleware.
Controls what data is captured and how the middleware behaves.
§Examples
use outlet::RequestLoggerConfig;
// Default configuration
let config = RequestLoggerConfig::default();
// Custom configuration
let config = RequestLoggerConfig {
capture_request_body: true,
capture_response_body: false,
};Fields§
§capture_request_body: boolWhether to capture request bodies
capture_response_body: boolWhether to capture response bodies
Trait Implementations§
Source§impl Clone for RequestLoggerConfig
impl Clone for RequestLoggerConfig
Source§fn clone(&self) -> RequestLoggerConfig
fn clone(&self) -> RequestLoggerConfig
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 RequestLoggerConfig
impl Debug for RequestLoggerConfig
Auto Trait Implementations§
impl Freeze for RequestLoggerConfig
impl RefUnwindSafe for RequestLoggerConfig
impl Send for RequestLoggerConfig
impl Sync for RequestLoggerConfig
impl Unpin for RequestLoggerConfig
impl UnwindSafe for RequestLoggerConfig
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