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
source§fn eq(&self, other: &JsonMatchPattern) -> bool
fn eq(&self, other: &JsonMatchPattern) -> bool
self
and other
values to be equal, and is used
by ==
.