#[non_exhaustive]pub struct CacheControl {
pub no_store: bool,
pub private: bool,
pub no_cache: bool,
pub max_age: Option<u64>,
}Expand description
The directives of Cache-Control this client acts on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.no_store: boolno-store: nothing may be stored.
private: boolprivate: meant for a single user’s cache.
no_cache: boolno-cache: always revalidate before use.
max_age: Option<u64>max-age in seconds; saturates instead of overflowing.
Implementations§
Trait Implementations§
Source§impl Clone for CacheControl
impl Clone for CacheControl
Source§impl Debug for CacheControl
impl Debug for CacheControl
Source§impl Default for CacheControl
impl Default for CacheControl
impl Eq for CacheControl
Source§impl PartialEq for CacheControl
impl PartialEq for CacheControl
impl StructuralPartialEq for CacheControl
Auto Trait Implementations§
impl Forget for CacheControl
impl Freeze for CacheControl
impl Move for CacheControl
impl RefUnwindSafe for CacheControl
impl Send for CacheControl
impl Sync for CacheControl
impl Unpin for CacheControl
impl UnsafeUnpin 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