pub struct HarEntry {
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
A single HAR entry (request/response pair)
Fields§
§started_date_time: StringStart time (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 (optional)
connection: Option<String>Connection ID (optional)
comment: Option<String>Optional comment
Implementations§
Source§impl HarEntry
impl HarEntry
Sourcepub fn new(request: HarRequest, response: HarResponse) -> Self
pub fn new(request: HarRequest, response: HarResponse) -> Self
Create a new entry
Sourcepub fn with_server_ip(self, ip: impl Into<String>) -> Self
pub fn with_server_ip(self, ip: impl Into<String>) -> Self
Set server IP
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more