pub struct ResponseInspector {
pub max_body_preview: usize,
pub show_all_headers: bool,
pub show_timing: bool,
/* private fields */
}Expand description
HTTP response inspector.
Provides detailed visual display of HTTP responses for debugging.
Fields§
§max_body_preview: usizeMaximum body preview length.
show_all_headers: boolWhether to show all headers.
show_timing: boolWhether to show timing information.
Implementations§
Source§impl ResponseInspector
impl ResponseInspector
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new response inspector.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn inspect(&self, info: &ResponseInfo) -> String
pub fn inspect(&self, info: &ResponseInfo) -> String
Inspect a response and return formatted output.
Trait Implementations§
Source§impl Clone for ResponseInspector
impl Clone for ResponseInspector
Source§fn clone(&self) -> ResponseInspector
fn clone(&self) -> ResponseInspector
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 moreAuto Trait Implementations§
impl Freeze for ResponseInspector
impl RefUnwindSafe for ResponseInspector
impl Send for ResponseInspector
impl Sync for ResponseInspector
impl Unpin for ResponseInspector
impl UnwindSafe for ResponseInspector
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