pub struct DataEntry { /* private fields */ }Available on crate features
experimental and CacheStorage only.Expand description
Data entry.
Implementations§
Source§impl DataEntry
impl DataEntry
pub fn builder() -> DataEntryBuilder
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]
pub fn request_headers(&self) -> &[Header]
Request headers
Sourcepub fn response_time(&self) -> f64
pub fn response_time(&self) -> f64
Number of seconds since epoch.
Sourcepub fn response_status(&self) -> u32
pub fn response_status(&self) -> u32
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]
pub fn response_headers(&self) -> &[Header]
Response headers
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataEntry
impl<'de> Deserialize<'de> for DataEntry
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 DataEntry
impl RefUnwindSafe for DataEntry
impl Send for DataEntry
impl Sync for DataEntry
impl Unpin for DataEntry
impl UnwindSafe for DataEntry
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