Enum fastly::handle::CacheOverride [−][src]
Optional override for response caching behavior.
Variants
Do not override the behavior specified in the origin response’s cache control headers.
Do not cache the response to this request, regardless of the origin response’s headers.
Override particular cache control settings.
The origin response’s cache control headers will be used for ttl and stale_while_revalidate if None
.
Fields of Override
Implementations
impl CacheOverride
[src]
pub const fn none() -> CacheOverride
[src]
pub const fn pass() -> CacheOverride
[src]
pub fn is_pass(&self) -> bool
[src]
pub const fn ttl(ttl: u32) -> CacheOverride
[src]
pub const fn stale_while_revalidate(swr: u32) -> CacheOverride
[src]
pub const fn pci(pci: bool) -> CacheOverride
[src]
pub const fn surrogate_key(sk: HeaderValue) -> CacheOverride
[src]
pub fn set_none(&mut self)
[src]
pub fn set_pass(&mut self, pass: bool)
[src]
pub fn set_ttl(&mut self, new_ttl: u32)
[src]
pub fn set_stale_while_revalidate(&mut self, new_swr: u32)
[src]
pub fn set_pci(&mut self, new_pci: bool)
[src]
pub fn set_surrogate_key(&mut self, new_surrogate_key: HeaderValue)
[src]
pub const fn default() -> CacheOverride
[src]
Trait Implementations
impl Clone for CacheOverride
[src]
pub fn clone(&self) -> CacheOverride
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CacheOverride
[src]
Auto Trait Implementations
impl RefUnwindSafe for CacheOverride
impl Send for CacheOverride
impl Sync for CacheOverride
impl Unpin for CacheOverride
impl UnwindSafe for CacheOverride
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,