Struct aws_sdk_wafv2::types::CookieMatchPattern
source · #[non_exhaustive]pub struct CookieMatchPattern {
pub all: Option<All>,
pub included_cookies: Option<Vec<String>>,
pub excluded_cookies: Option<Vec<String>>,
}Expand description
The filter to use to identify the subset of cookies to inspect in a web request.
You must specify exactly one setting: either All, IncludedCookies, or ExcludedCookies.
Example JSON: "MatchPattern": { "IncludedCookies": \[ "session-id-time", "session-id" \] }
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.all: Option<All>Inspect all cookies.
Inspect only the cookies that have a key that matches one of the strings specified here.
Inspect only the cookies whose keys don't match any of the strings specified here.
Implementations§
source§impl CookieMatchPattern
impl CookieMatchPattern
Inspect only the cookies that have a key that matches one of the strings specified here.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .included_cookies.is_none().
Inspect only the cookies whose keys don't match any of the strings specified here.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .excluded_cookies.is_none().
source§impl CookieMatchPattern
impl CookieMatchPattern
sourcepub fn builder() -> CookieMatchPatternBuilder
pub fn builder() -> CookieMatchPatternBuilder
Creates a new builder-style object to manufacture CookieMatchPattern.
Trait Implementations§
source§impl Clone for CookieMatchPattern
impl Clone for CookieMatchPattern
source§fn clone(&self) -> CookieMatchPattern
fn clone(&self) -> CookieMatchPattern
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CookieMatchPattern
impl Debug for CookieMatchPattern
source§impl PartialEq for CookieMatchPattern
impl PartialEq for CookieMatchPattern
impl StructuralPartialEq for CookieMatchPattern
Auto Trait Implementations§
impl Freeze for CookieMatchPattern
impl RefUnwindSafe for CookieMatchPattern
impl Send for CookieMatchPattern
impl Sync for CookieMatchPattern
impl Unpin for CookieMatchPattern
impl UnwindSafe for CookieMatchPattern
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more