pub struct DataEntry<'a> { /* private fields */ }Expand description
Data entry.
Implementations§
Source§impl<'a> DataEntry<'a>
impl<'a> DataEntry<'a>
Sourcepub fn builder(
request_url: impl Into<Cow<'a, str>>,
request_method: impl Into<Cow<'a, str>>,
request_headers: Vec<Header<'a>>,
response_time: f64,
response_status: i64,
response_status_text: impl Into<Cow<'a, str>>,
response_type: impl Into<CachedResponseType>,
response_headers: Vec<Header<'a>>,
) -> DataEntryBuilder<'a>
pub fn builder( request_url: impl Into<Cow<'a, str>>, request_method: impl Into<Cow<'a, str>>, request_headers: Vec<Header<'a>>, response_time: f64, response_status: i64, response_status_text: impl Into<Cow<'a, str>>, response_type: impl Into<CachedResponseType>, response_headers: Vec<Header<'a>>, ) -> DataEntryBuilder<'a>
Creates a builder for this type with the required parameters:
request_url: Request URL.request_method: Request method.request_headers: Request headersresponse_time: Number of seconds since epoch.response_status: HTTP response status code.response_status_text: HTTP response status text.response_type: HTTP response typeresponse_headers: Response headers
Sourcepub fn request_url(&self) -> &str
pub fn request_url(&self) -> &str
Request URL.
Sourcepub fn request_method(&self) -> &str
pub fn request_method(&self) -> &str
Request method.
Sourcepub fn request_headers(&self) -> &[Header<'a>]
pub fn request_headers(&self) -> &[Header<'a>]
Request headers
Sourcepub fn response_time(&self) -> f64
pub fn response_time(&self) -> f64
Number of seconds since epoch.
Sourcepub fn response_status(&self) -> i64
pub fn response_status(&self) -> i64
HTTP response status code.
Sourcepub fn response_status_text(&self) -> &str
pub fn response_status_text(&self) -> &str
HTTP response status text.
Sourcepub fn response_type(&self) -> &CachedResponseType
pub fn response_type(&self) -> &CachedResponseType
HTTP response type
Sourcepub fn response_headers(&self) -> &[Header<'a>]
pub fn response_headers(&self) -> &[Header<'a>]
Response headers
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for DataEntry<'a>
impl<'de, 'a> Deserialize<'de> for DataEntry<'a>
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<'a> Freeze for DataEntry<'a>
impl<'a> RefUnwindSafe for DataEntry<'a>
impl<'a> Send for DataEntry<'a>
impl<'a> Sync for DataEntry<'a>
impl<'a> Unpin for DataEntry<'a>
impl<'a> UnsafeUnpin for DataEntry<'a>
impl<'a> UnwindSafe for DataEntry<'a>
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