pub struct HarEntry {
pub pageref: Option<String>,
pub started_date_time: String,
pub time: f64,
pub request: HarRequest,
pub response: HarResponse,
pub cache: HarCache,
pub timings: HarTimings,
pub server_ip_address: Option<String>,
pub connection: Option<String>,
pub comment: Option<String>,
}Expand description
HAR entry (request/response pair).
Fields§
§pageref: Option<String>Reference to the parent page (pageref).
started_date_time: StringStart timestamp (ISO 8601).
time: f64Total time in milliseconds.
request: HarRequestRequest details.
response: HarResponseResponse details.
cache: HarCacheCache details.
timings: HarTimingsTiming details.
server_ip_address: Option<String>Server IP address.
connection: Option<String>Connection ID.
comment: Option<String>Optional comment.
Implementations§
Source§impl HarEntry
impl HarEntry
Sourcepub fn set_request(&mut self, request: HarRequest)
pub fn set_request(&mut self, request: HarRequest)
Set the request.
Sourcepub fn set_response(&mut self, response: HarResponse)
pub fn set_response(&mut self, response: HarResponse)
Set the response.
Sourcepub fn set_timings(&mut self, timings: HarTimings)
pub fn set_timings(&mut self, timings: HarTimings)
Set timing information.
Sourcepub fn set_server_ip(&mut self, ip: &str)
pub fn set_server_ip(&mut self, ip: &str)
Set server IP address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HarEntry
impl<'de> Deserialize<'de> for HarEntry
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 HarEntry
impl RefUnwindSafe for HarEntry
impl Send for HarEntry
impl Sync for HarEntry
impl Unpin for HarEntry
impl UnwindSafe for HarEntry
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