pub enum InspectionVerbosity {
Minimal,
Normal,
Verbose,
}Expand description
Verbosity level for the request inspection middleware.
Controls how much detail is shown in the request/response output.
Variants§
Minimal
Minimal: one-line summary per request/response.
Shows: --> GET /path and <-- 200 OK (12ms)
Normal
Normal: summary plus headers.
Shows method/path, all headers (filtered), and status/timing.
Verbose
Verbose: summary, headers, and body preview.
Shows everything in Normal plus request/response body previews with JSON pretty-printing when applicable.
Trait Implementations§
Source§impl Clone for InspectionVerbosity
impl Clone for InspectionVerbosity
Source§fn clone(&self) -> InspectionVerbosity
fn clone(&self) -> InspectionVerbosity
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 InspectionVerbosity
impl Debug for InspectionVerbosity
Source§impl PartialEq for InspectionVerbosity
impl PartialEq for InspectionVerbosity
impl Copy for InspectionVerbosity
impl Eq for InspectionVerbosity
impl StructuralPartialEq for InspectionVerbosity
Auto Trait Implementations§
impl Freeze for InspectionVerbosity
impl RefUnwindSafe for InspectionVerbosity
impl Send for InspectionVerbosity
impl Sync for InspectionVerbosity
impl Unpin for InspectionVerbosity
impl UnwindSafe for InspectionVerbosity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).