[][src]Enum fastly_shared::CacheOverride

pub enum CacheOverride {
    None,
    Pass,
    Override {
        ttl: Option<u32>,
        stale_while_revalidate: Option<u32>,
    },
}

Optional override for response caching behavior.

Variants

None

Do not override the behavior specified in the origin response's cache control headers.

Pass

Do not cache the response to this request, regardless of the origin response's headers.

Override

Override particular cache control settings.

The origin response's cache control headers will be used for any fields that are None.

Fields of Override

ttl: Option<u32>stale_while_revalidate: Option<u32>

Methods

impl CacheOverride[src]

pub const fn none() -> Self[src]

pub const fn pass() -> Self[src]

pub const fn ttl(ttl: u32) -> Self[src]

pub const fn stale_while_revalidate(swr: u32) -> Self[src]

pub fn set_none(&mut self)[src]

pub fn set_pass(&mut self)[src]

pub fn set_ttl(&mut self, new_ttl: u32)[src]

pub fn set_stale_while_revalidate(&mut self, new_swr: u32)[src]

pub const fn default() -> Self[src]

Trait Implementations

impl Clone for CacheOverride[src]

impl Copy for CacheOverride[src]

impl Debug for CacheOverride[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.