pub struct ApiResultMiddlewareConfig {
pub trace_id_headers: Vec<String>,
pub inject_timestamp: bool,
}Expand description
Configuration for the ApiResultLayer middleware.
Fields§
§trace_id_headers: Vec<String>Header names to check for an existing trace ID (checked in order).
Default: ["X-Request-ID", "X-Trace-ID"]
inject_timestamp: boolWhether to auto-inject the current Unix-millisecond timestamp.
Default: false
Trait Implementations§
Source§impl Clone for ApiResultMiddlewareConfig
impl Clone for ApiResultMiddlewareConfig
Source§fn clone(&self) -> ApiResultMiddlewareConfig
fn clone(&self) -> ApiResultMiddlewareConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ApiResultMiddlewareConfig
impl RefUnwindSafe for ApiResultMiddlewareConfig
impl Send for ApiResultMiddlewareConfig
impl Sync for ApiResultMiddlewareConfig
impl Unpin for ApiResultMiddlewareConfig
impl UnsafeUnpin for ApiResultMiddlewareConfig
impl UnwindSafe for ApiResultMiddlewareConfig
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