pub struct CacheControl {
pub max_age: Option<Duration>,
pub s_maxage: Option<Duration>,
pub no_cache: bool,
pub no_store: bool,
pub private: bool,
pub public: bool,
pub must_revalidate: bool,
pub stale_while_revalidate: Option<Duration>,
}Expand description
Parsed Cache-Control header directives
Fields§
§max_age: Option<Duration>Max age in seconds
s_maxage: Option<Duration>S-Maxage (shared cache max age)
no_cache: boolNo-cache directive
no_store: boolNo-store directive
private: boolPrivate directive
public: boolPublic directive
must_revalidate: boolMust-revalidate directive
stale_while_revalidate: Option<Duration>Stale-while-revalidate window
Implementations§
Trait Implementations§
Source§impl Clone for CacheControl
impl Clone for CacheControl
Source§fn clone(&self) -> CacheControl
fn clone(&self) -> CacheControl
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 CacheControl
impl Debug for CacheControl
Source§impl Default for CacheControl
impl Default for CacheControl
Source§fn default() -> CacheControl
fn default() -> CacheControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for CacheControl
impl PartialEq for CacheControl
impl Eq for CacheControl
impl StructuralPartialEq for CacheControl
Auto Trait Implementations§
impl Freeze for CacheControl
impl RefUnwindSafe for CacheControl
impl Send for CacheControl
impl Sync for CacheControl
impl Unpin for CacheControl
impl UnwindSafe for CacheControl
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