Struct aws_sdk_wafv2::types::HeaderMatchPattern
source · #[non_exhaustive]pub struct HeaderMatchPattern {
pub all: Option<All>,
pub included_headers: Option<Vec<String>>,
pub excluded_headers: Option<Vec<String>>,
}
Expand description
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All
, IncludedHeaders
, or ExcludedHeaders
.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
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 headers.
included_headers: Option<Vec<String>>
Inspect only the headers that have a key that matches one of the strings specified here.
excluded_headers: Option<Vec<String>>
Inspect only the headers whose keys don't match any of the strings specified here.
Implementations§
source§impl HeaderMatchPattern
impl HeaderMatchPattern
sourcepub fn included_headers(&self) -> &[String]
pub fn included_headers(&self) -> &[String]
Inspect only the headers 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_headers.is_none()
.
sourcepub fn excluded_headers(&self) -> &[String]
pub fn excluded_headers(&self) -> &[String]
Inspect only the headers 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_headers.is_none()
.
source§impl HeaderMatchPattern
impl HeaderMatchPattern
sourcepub fn builder() -> HeaderMatchPatternBuilder
pub fn builder() -> HeaderMatchPatternBuilder
Creates a new builder-style object to manufacture HeaderMatchPattern
.
Trait Implementations§
source§impl Clone for HeaderMatchPattern
impl Clone for HeaderMatchPattern
source§fn clone(&self) -> HeaderMatchPattern
fn clone(&self) -> HeaderMatchPattern
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HeaderMatchPattern
impl Debug for HeaderMatchPattern
source§impl PartialEq for HeaderMatchPattern
impl PartialEq for HeaderMatchPattern
source§fn eq(&self, other: &HeaderMatchPattern) -> bool
fn eq(&self, other: &HeaderMatchPattern) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HeaderMatchPattern
Auto Trait Implementations§
impl Freeze for HeaderMatchPattern
impl RefUnwindSafe for HeaderMatchPattern
impl Send for HeaderMatchPattern
impl Sync for HeaderMatchPattern
impl Unpin for HeaderMatchPattern
impl UnwindSafe for HeaderMatchPattern
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> 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