#[non_exhaustive]pub struct BackendBucketCdnPolicyCacheKeyPolicy {
pub include_http_headers: Vec<String>,
pub query_string_whitelist: Vec<String>,
/* private fields */
}Available on crate feature
backend-buckets only.Expand description
Message containing what to include in the cache key for a request for Cloud CDN.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.include_http_headers: Vec<String>Allows HTTP request headers (by name) to be used in the cache key.
query_string_whitelist: Vec<String>Names of query string parameters to include in cache keys. Default parameters are always included. ‘&’ and ‘=’ will be percent encoded and not treated as delimiters.
Implementations§
Source§impl BackendBucketCdnPolicyCacheKeyPolicy
impl BackendBucketCdnPolicyCacheKeyPolicy
pub fn new() -> Self
Sourcepub fn set_include_http_headers<T, V>(self, v: T) -> Self
pub fn set_include_http_headers<T, V>(self, v: T) -> Self
Sets the value of include_http_headers.
§Example
ⓘ
let x = BackendBucketCdnPolicyCacheKeyPolicy::new().set_include_http_headers(["a", "b", "c"]);Sourcepub fn set_query_string_whitelist<T, V>(self, v: T) -> Self
pub fn set_query_string_whitelist<T, V>(self, v: T) -> Self
Sets the value of query_string_whitelist.
§Example
ⓘ
let x = BackendBucketCdnPolicyCacheKeyPolicy::new().set_query_string_whitelist(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for BackendBucketCdnPolicyCacheKeyPolicy
impl Clone for BackendBucketCdnPolicyCacheKeyPolicy
Source§fn clone(&self) -> BackendBucketCdnPolicyCacheKeyPolicy
fn clone(&self) -> BackendBucketCdnPolicyCacheKeyPolicy
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 Default for BackendBucketCdnPolicyCacheKeyPolicy
impl Default for BackendBucketCdnPolicyCacheKeyPolicy
Source§fn default() -> BackendBucketCdnPolicyCacheKeyPolicy
fn default() -> BackendBucketCdnPolicyCacheKeyPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendBucketCdnPolicyCacheKeyPolicy
impl PartialEq for BackendBucketCdnPolicyCacheKeyPolicy
Source§fn eq(&self, other: &BackendBucketCdnPolicyCacheKeyPolicy) -> bool
fn eq(&self, other: &BackendBucketCdnPolicyCacheKeyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendBucketCdnPolicyCacheKeyPolicy
Auto Trait Implementations§
impl Freeze for BackendBucketCdnPolicyCacheKeyPolicy
impl RefUnwindSafe for BackendBucketCdnPolicyCacheKeyPolicy
impl Send for BackendBucketCdnPolicyCacheKeyPolicy
impl Sync for BackendBucketCdnPolicyCacheKeyPolicy
impl Unpin for BackendBucketCdnPolicyCacheKeyPolicy
impl UnwindSafe for BackendBucketCdnPolicyCacheKeyPolicy
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