pub struct TrafficEntry {
pub request_id: String,
pub timestamp: DateTime<Utc>,
pub method: String,
pub url: String,
pub request_headers: Vec<(String, String)>,
pub request_body: Option<String>,
pub response_status: Option<u16>,
pub response_headers: Vec<(String, String)>,
pub response_body: Option<String>,
pub duration_ms: Option<u64>,
pub error: Option<String>,
}Expand description
A single HTTP traffic entry
Fields§
§request_id: StringUnique request ID
timestamp: DateTime<Utc>Timestamp
method: StringRequest method
url: StringRequest URL
request_headers: Vec<(String, String)>Request headers (redacted if configured)
request_body: Option<String>Request body (redacted if configured)
response_status: Option<u16>Response status code
response_headers: Vec<(String, String)>Response headers
response_body: Option<String>Response body
duration_ms: Option<u64>Request duration in milliseconds
error: Option<String>Any error that occurred
Implementations§
Trait Implementations§
Source§impl Clone for TrafficEntry
impl Clone for TrafficEntry
Source§fn clone(&self) -> TrafficEntry
fn clone(&self) -> TrafficEntry
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 TrafficEntry
impl RefUnwindSafe for TrafficEntry
impl Send for TrafficEntry
impl Sync for TrafficEntry
impl Unpin for TrafficEntry
impl UnwindSafe for TrafficEntry
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