pub struct BackendBucketCdnPolicyNegativeCachingPolicy {
pub code: Option<i32>,
pub ttl: Option<i32>,
}
Expand description
Specify CDN TTLs for response error codes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§code: Option<i32>
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
ttl: Option<i32>
The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
Trait Implementations§
source§impl Clone for BackendBucketCdnPolicyNegativeCachingPolicy
impl Clone for BackendBucketCdnPolicyNegativeCachingPolicy
source§fn clone(&self) -> BackendBucketCdnPolicyNegativeCachingPolicy
fn clone(&self) -> BackendBucketCdnPolicyNegativeCachingPolicy
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 Default for BackendBucketCdnPolicyNegativeCachingPolicy
impl Default for BackendBucketCdnPolicyNegativeCachingPolicy
source§fn default() -> BackendBucketCdnPolicyNegativeCachingPolicy
fn default() -> BackendBucketCdnPolicyNegativeCachingPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BackendBucketCdnPolicyNegativeCachingPolicy
impl<'de> Deserialize<'de> for BackendBucketCdnPolicyNegativeCachingPolicy
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
impl Part for BackendBucketCdnPolicyNegativeCachingPolicy
Auto Trait Implementations§
impl RefUnwindSafe for BackendBucketCdnPolicyNegativeCachingPolicy
impl Send for BackendBucketCdnPolicyNegativeCachingPolicy
impl Sync for BackendBucketCdnPolicyNegativeCachingPolicy
impl Unpin for BackendBucketCdnPolicyNegativeCachingPolicy
impl UnwindSafe for BackendBucketCdnPolicyNegativeCachingPolicy
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