[−][src]Enum fastly::request::CacheOverride
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 any fields that are None
.
Methods
impl CacheOverride
[src]
pub const fn none() -> CacheOverride
[src]
pub const fn pass() -> CacheOverride
[src]
pub const fn ttl(ttl: u32) -> CacheOverride
[src]
pub const fn stale_while_revalidate(swr: u32) -> CacheOverride
[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() -> CacheOverride
[src]
Trait Implementations
impl Clone for CacheOverride
[src]
fn clone(&self) -> CacheOverride
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CacheOverride
[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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,