Struct aws_sdk_wafv2::model::RegexMatchStatement
source · [−]#[non_exhaustive]pub struct RegexMatchStatement {
pub regex_string: Option<String>,
pub field_to_match: Option<FieldToMatch>,
pub text_transformations: Option<Vec<TextTransformation>>,
}Expand description
A rule statement used to search web request components for a match against a single regular expression.
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.regex_string: Option<String>The string representing the regular expression.
field_to_match: Option<FieldToMatch>The part of the web request that you want WAF to inspect. For more information, see FieldToMatch.
text_transformations: Option<Vec<TextTransformation>>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.
Implementations
sourceimpl RegexMatchStatement
impl RegexMatchStatement
sourcepub fn regex_string(&self) -> Option<&str>
pub fn regex_string(&self) -> Option<&str>
The string representing the regular expression.
sourcepub fn field_to_match(&self) -> Option<&FieldToMatch>
pub fn field_to_match(&self) -> Option<&FieldToMatch>
The part of the web request that you want WAF to inspect. For more information, see FieldToMatch.
sourcepub fn text_transformations(&self) -> Option<&[TextTransformation]>
pub fn text_transformations(&self) -> Option<&[TextTransformation]>
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.
sourceimpl RegexMatchStatement
impl RegexMatchStatement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RegexMatchStatement
Trait Implementations
sourceimpl Clone for RegexMatchStatement
impl Clone for RegexMatchStatement
sourcefn clone(&self) -> RegexMatchStatement
fn clone(&self) -> RegexMatchStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RegexMatchStatement
impl Debug for RegexMatchStatement
sourceimpl PartialEq<RegexMatchStatement> for RegexMatchStatement
impl PartialEq<RegexMatchStatement> for RegexMatchStatement
sourcefn eq(&self, other: &RegexMatchStatement) -> bool
fn eq(&self, other: &RegexMatchStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RegexMatchStatement) -> bool
fn ne(&self, other: &RegexMatchStatement) -> bool
This method tests for !=.
impl StructuralPartialEq for RegexMatchStatement
Auto Trait Implementations
impl RefUnwindSafe for RegexMatchStatement
impl Send for RegexMatchStatement
impl Sync for RegexMatchStatement
impl Unpin for RegexMatchStatement
impl UnwindSafe for RegexMatchStatement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more