pub struct HttpCacheControl {
pub max_age: Option<usize>,
pub s_maxage: Option<usize>,
pub no_cache: Option<bool>,
pub no_store: Option<bool>,
pub no_transform: Option<bool>,
pub must_revalidate: Option<bool>,
pub proxy_revalidate: Option<bool>,
pub private: Option<bool>,
pub public: Option<bool>,
pub immutable: Option<bool>,
pub stale_while_revalidate: Option<bool>,
pub stale_if_error: Option<bool>,
}Expand description
HTTP Cache-Control. See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control
Fields§
§max_age: Option<usize>§s_maxage: Option<usize>§no_cache: Option<bool>§no_store: Option<bool>§no_transform: Option<bool>§must_revalidate: Option<bool>§proxy_revalidate: Option<bool>§private: Option<bool>§public: Option<bool>§immutable: Option<bool>§stale_while_revalidate: Option<bool>§stale_if_error: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for HttpCacheControl
impl Clone for HttpCacheControl
Source§fn clone(&self) -> HttpCacheControl
fn clone(&self) -> HttpCacheControl
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 HttpCacheControl
impl Debug for HttpCacheControl
Source§impl<'de> Deserialize<'de> for HttpCacheControl
impl<'de> Deserialize<'de> for HttpCacheControl
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 HttpCacheControl
impl RefUnwindSafe for HttpCacheControl
impl Send for HttpCacheControl
impl Sync for HttpCacheControl
impl Unpin for HttpCacheControl
impl UnwindSafe for HttpCacheControl
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