pub struct RequestIdConfig {
pub header_name: String,
pub strategy: RequestIdStrategy,
pub override_existing: bool,
pub add_to_response: bool,
pub log_request_id: bool,
}
Expand description
Configuration for request ID middleware
Fields§
§header_name: String
Header name for request ID (default: “x-request-id”)
strategy: RequestIdStrategy
Request ID generation strategy
override_existing: bool
Whether to generate new ID if one already exists
add_to_response: bool
Whether to add request ID to response headers
log_request_id: bool
Whether to log request ID
Trait Implementations§
Source§impl Clone for RequestIdConfig
impl Clone for RequestIdConfig
Source§impl Debug for RequestIdConfig
impl Debug for RequestIdConfig
Auto Trait Implementations§
impl !Freeze for RequestIdConfig
impl RefUnwindSafe for RequestIdConfig
impl Send for RequestIdConfig
impl Sync for RequestIdConfig
impl Unpin for RequestIdConfig
impl UnwindSafe for RequestIdConfig
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