pub struct NetworkEntry {Show 15 fields
pub id: Option<String>,
pub url: String,
pub method: String,
pub status: i32,
pub duration: f64,
pub timestamp: i64,
pub failed: bool,
pub source: String,
pub kind: Option<String>,
pub request_headers: Option<HashMap<String, String>>,
pub response_headers: Option<HashMap<String, String>>,
pub response_body: Option<String>,
pub connection_id: Option<String>,
pub message_count: Option<i32>,
pub ws_ready_state: Option<i32>,
}Expand description
A captured network request (fetch, XHR, or WebSocket).
Fields§
§id: Option<String>Unique entry identifier (6-char hex).
url: StringRequest URL.
method: StringHTTP method.
status: i32HTTP status code.
duration: f64Duration in milliseconds.
timestamp: i64Unix epoch milliseconds.
failed: boolWhether the request failed.
source: String"browser" (network entries always come from the browser).
kind: Option<String>Transport kind: "fetch", "xhr", or "ws".
request_headers: Option<HashMap<String, String>>Request headers.
response_headers: Option<HashMap<String, String>>Response headers.
response_body: Option<String>Response body (capped at 4KB, captured for failed requests only).
connection_id: Option<String>WebSocket connection identifier.
message_count: Option<i32>Number of WebSocket messages exchanged.
ws_ready_state: Option<i32>WebSocket readyState at capture time.
Trait Implementations§
Source§impl Clone for NetworkEntry
impl Clone for NetworkEntry
Source§fn clone(&self) -> NetworkEntry
fn clone(&self) -> NetworkEntry
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 NetworkEntry
impl Debug for NetworkEntry
Source§impl<'de> Deserialize<'de> for NetworkEntry
impl<'de> Deserialize<'de> for NetworkEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NetworkEntry
impl RefUnwindSafe for NetworkEntry
impl Send for NetworkEntry
impl Sync for NetworkEntry
impl Unpin for NetworkEntry
impl UnsafeUnpin for NetworkEntry
impl UnwindSafe for NetworkEntry
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