pub struct RequestSummary {
pub method: String,
pub url_path: String,
pub headers: Vec<(String, String)>,
pub body_json: Option<Value>,
pub body_truncated: bool,
}Expand description
Key fields from the incoming HTTP request.
Fields§
§method: String§url_path: String§headers: Vec<(String, String)>Selected request headers (display-only).
body_json: Option<Value>Captured JSON body (RFC 023). Present only when TraceConfig::capture_body
is true and the request body is valid JSON within the size cap.
body_truncated: booltrue when the body was omitted because it exceeded max_body_bytes.
Implementations§
Trait Implementations§
Source§impl Clone for RequestSummary
impl Clone for RequestSummary
Source§fn clone(&self) -> RequestSummary
fn clone(&self) -> RequestSummary
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 moreSource§impl Debug for RequestSummary
impl Debug for RequestSummary
Auto Trait Implementations§
impl Freeze for RequestSummary
impl RefUnwindSafe for RequestSummary
impl Send for RequestSummary
impl Sync for RequestSummary
impl Unpin for RequestSummary
impl UnsafeUnpin for RequestSummary
impl UnwindSafe for RequestSummary
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