Struct aws_sdk_wafv2::types::JsonMatchPattern
source · #[non_exhaustive]pub struct JsonMatchPattern {
pub all: Option<All>,
pub included_paths: Option<Vec<String>>,
}Expand description
The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the FieldToMatch option JsonBody.
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>Match all of the elements. See also MatchScope in JsonBody.
You must specify either this setting or the IncludedPaths setting, but not both.
included_paths: Option<Vec<String>>Match only the specified include paths. See also MatchScope in JsonBody.
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": \["/dogs/0/name", "/dogs/1/name"\]. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All setting, but not both.
Don't use this option to include all paths. Instead, use the All setting.
Implementations§
source§impl JsonMatchPattern
impl JsonMatchPattern
sourcepub fn all(&self) -> Option<&All>
pub fn all(&self) -> Option<&All>
Match all of the elements. See also MatchScope in JsonBody.
You must specify either this setting or the IncludedPaths setting, but not both.
sourcepub fn included_paths(&self) -> &[String]
pub fn included_paths(&self) -> &[String]
Match only the specified include paths. See also MatchScope in JsonBody.
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": \["/dogs/0/name", "/dogs/1/name"\]. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All setting, but not both.
Don't use this option to include all paths. Instead, use the All setting.
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_paths.is_none().
source§impl JsonMatchPattern
impl JsonMatchPattern
sourcepub fn builder() -> JsonMatchPatternBuilder
pub fn builder() -> JsonMatchPatternBuilder
Creates a new builder-style object to manufacture JsonMatchPattern.
Trait Implementations§
source§impl Clone for JsonMatchPattern
impl Clone for JsonMatchPattern
source§fn clone(&self) -> JsonMatchPattern
fn clone(&self) -> JsonMatchPattern
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JsonMatchPattern
impl Debug for JsonMatchPattern
source§impl PartialEq for JsonMatchPattern
impl PartialEq for JsonMatchPattern
impl StructuralPartialEq for JsonMatchPattern
Auto Trait Implementations§
impl Freeze for JsonMatchPattern
impl RefUnwindSafe for JsonMatchPattern
impl Send for JsonMatchPattern
impl Sync for JsonMatchPattern
impl Unpin for JsonMatchPattern
impl UnwindSafe for JsonMatchPattern
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