pub struct CacheHints {
pub etag: Option<String>,
pub last_modified: Option<String>,
pub cache_control: Option<String>,
pub no_cache: bool,
pub max_age: Option<u32>,
}Expand description
Cache hints extracted from the page
Fields§
§etag: Option<String>ETag value if found
last_modified: Option<String>Last-Modified header value
cache_control: Option<String>Cache-Control directives
no_cache: boolWhether page indicates it shouldn’t be cached
max_age: Option<u32>Max-age value in seconds
Trait Implementations§
Source§impl Clone for CacheHints
impl Clone for CacheHints
Source§fn clone(&self) -> CacheHints
fn clone(&self) -> CacheHints
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 CacheHints
impl Debug for CacheHints
Source§impl Default for CacheHints
impl Default for CacheHints
Source§fn default() -> CacheHints
fn default() -> CacheHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CacheHints
impl<'de> Deserialize<'de> for CacheHints
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
Source§impl PartialEq for CacheHints
impl PartialEq for CacheHints
Source§impl Serialize for CacheHints
impl Serialize for CacheHints
impl StructuralPartialEq for CacheHints
Auto Trait Implementations§
impl Freeze for CacheHints
impl RefUnwindSafe for CacheHints
impl Send for CacheHints
impl Sync for CacheHints
impl Unpin for CacheHints
impl UnwindSafe for CacheHints
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