#[non_exhaustive]pub struct CacheInvalidationRule {
pub cache_tags: Vec<String>,
pub host: Option<String>,
pub path: Option<String>,
/* private fields */
}Available on crate feature
url-maps only.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.A list of cache tags used to identify cached objects.
- Cache tags are specified when the response is first cached, by setting
the
Cache-Tagresponse header at the origin. - Multiple cache tags in the same invalidation request are treated as
Boolean
OR- for example,tag1 OR tag2 OR tag3. - If other fields are also specified, these are treated as Boolean
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
host: Option<String>If set, this invalidation rule will only apply to requests with a Host header matching host.
path: Option<String>Implementations§
Source§impl CacheInvalidationRule
impl CacheInvalidationRule
Trait Implementations§
Source§impl Clone for CacheInvalidationRule
impl Clone for CacheInvalidationRule
Source§fn clone(&self) -> CacheInvalidationRule
fn clone(&self) -> CacheInvalidationRule
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 CacheInvalidationRule
impl Debug for CacheInvalidationRule
Source§impl Default for CacheInvalidationRule
impl Default for CacheInvalidationRule
Source§fn default() -> CacheInvalidationRule
fn default() -> CacheInvalidationRule
Returns the “default value” for a type. Read more
Source§impl Message for CacheInvalidationRule
impl Message for CacheInvalidationRule
Source§impl PartialEq for CacheInvalidationRule
impl PartialEq for CacheInvalidationRule
impl StructuralPartialEq for CacheInvalidationRule
Auto Trait Implementations§
impl Freeze for CacheInvalidationRule
impl RefUnwindSafe for CacheInvalidationRule
impl Send for CacheInvalidationRule
impl Sync for CacheInvalidationRule
impl Unpin for CacheInvalidationRule
impl UnwindSafe for CacheInvalidationRule
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