pub struct ParamsInCacheKey {
pub enable_accept_encoding_gzip: bool,
pub enable_accept_encoding_brotli: bool,
pub headers_config: CachePolicyHeadersConfig,
pub cookies_config: CachePolicyCookiesConfig,
pub query_strings_config: CachePolicyQueryStringsConfig,
}Expand description
Parameters controlling cache-key composition.
Fields§
§enable_accept_encoding_gzip: boolWhether gzip is permitted in the cache key.
enable_accept_encoding_brotli: boolWhether brotli is permitted in the cache key.
headers_config: CachePolicyHeadersConfigHeaders forwarded to origin and included in key.
Cookies forwarded/included.
query_strings_config: CachePolicyQueryStringsConfigQuery strings forwarded/included.
Trait Implementations§
Source§impl Clone for ParamsInCacheKey
impl Clone for ParamsInCacheKey
Source§fn clone(&self) -> ParamsInCacheKey
fn clone(&self) -> ParamsInCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParamsInCacheKey
impl Debug for ParamsInCacheKey
Source§impl Default for ParamsInCacheKey
impl Default for ParamsInCacheKey
Source§fn default() -> ParamsInCacheKey
fn default() -> ParamsInCacheKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParamsInCacheKey
impl<'de> Deserialize<'de> for ParamsInCacheKey
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
Auto Trait Implementations§
impl Freeze for ParamsInCacheKey
impl RefUnwindSafe for ParamsInCacheKey
impl Send for ParamsInCacheKey
impl Sync for ParamsInCacheKey
impl Unpin for ParamsInCacheKey
impl UnsafeUnpin for ParamsInCacheKey
impl UnwindSafe for ParamsInCacheKey
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