Struct fastly_api::models::cache_setting::CacheSetting
source · pub struct CacheSetting {
pub action: Option<Action>,
pub cache_condition: Option<String>,
pub name: Option<String>,
pub stale_ttl: Option<i32>,
pub ttl: Option<i32>,
}
Fields§
§action: Option<Action>
If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule.
cache_condition: Option<String>
Name of the cache condition controlling when this configuration applies.
name: Option<String>
Name for the cache settings object.
stale_ttl: Option<i32>
Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as ‘stale if error’).
ttl: Option<i32>
Maximum time to consider the object fresh in the cache (the cache ‘time to live’).
Implementations§
source§impl CacheSetting
impl CacheSetting
pub fn new() -> CacheSetting
Trait Implementations§
source§impl Clone for CacheSetting
impl Clone for CacheSetting
source§fn clone(&self) -> CacheSetting
fn clone(&self) -> CacheSetting
Returns a copy 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 CacheSetting
impl Debug for CacheSetting
source§impl Default for CacheSetting
impl Default for CacheSetting
source§fn default() -> CacheSetting
fn default() -> CacheSetting
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CacheSetting
impl<'de> Deserialize<'de> for CacheSetting
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more