[][src]Struct google_compute1::CacheKeyPolicy

pub struct CacheKeyPolicy {
    pub query_string_blacklist: Option<Vec<String>>,
    pub include_query_string: Option<bool>,
    pub query_string_whitelist: Option<Vec<String>>,
    pub include_protocol: Option<bool>,
    pub include_host: Option<bool>,
}

Message containing what to include in the cache key for a request for Cloud CDN.

This type is not used in any activity, and only used as part of another schema.

Fields

query_string_blacklist: Option<Vec<String>>

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

include_query_string: Option<bool>

If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.

query_string_whitelist: Option<Vec<String>>

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

include_protocol: Option<bool>

If true, http and https requests will be cached separately.

include_host: Option<bool>

If true, requests to different hosts will be cached separately.

Trait Implementations

impl Part for CacheKeyPolicy[src]

impl Default for CacheKeyPolicy[src]

impl Clone for CacheKeyPolicy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for CacheKeyPolicy[src]

impl Serialize for CacheKeyPolicy[src]

impl<'de> Deserialize<'de> for CacheKeyPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]