pub struct CacheSetting {
pub action: Option<Action>,
pub cache_condition: Option<String>,
pub name: Option<String>,
pub stale_ttl: Option<String>,
pub ttl: Option<String>,
}
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<String>
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<String>
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 duplicate 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
Source§impl PartialEq for CacheSetting
impl PartialEq for CacheSetting
Source§impl Serialize for CacheSetting
impl Serialize for CacheSetting
impl StructuralPartialEq for CacheSetting
Auto Trait Implementations§
impl Freeze for CacheSetting
impl RefUnwindSafe for CacheSetting
impl Send for CacheSetting
impl Sync for CacheSetting
impl Unpin for CacheSetting
impl UnwindSafe for CacheSetting
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