Struct aws_sdk_wafv2::types::TextTransformation
source · #[non_exhaustive]pub struct TextTransformation {
pub priority: i32,
pub type: TextTransformationType,
}
Expand description
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
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.priority: i32
Sets the relative processing order for multiple transformations. WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.
type: TextTransformationType
For detailed descriptions of each of the transformation types, see Text transformations in the WAF Developer Guide.
Implementations§
source§impl TextTransformation
impl TextTransformation
sourcepub fn priority(&self) -> i32
pub fn priority(&self) -> i32
Sets the relative processing order for multiple transformations. WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.
sourcepub fn type(&self) -> &TextTransformationType
pub fn type(&self) -> &TextTransformationType
For detailed descriptions of each of the transformation types, see Text transformations in the WAF Developer Guide.
source§impl TextTransformation
impl TextTransformation
sourcepub fn builder() -> TextTransformationBuilder
pub fn builder() -> TextTransformationBuilder
Creates a new builder-style object to manufacture TextTransformation
.
Trait Implementations§
source§impl Clone for TextTransformation
impl Clone for TextTransformation
source§fn clone(&self) -> TextTransformation
fn clone(&self) -> TextTransformation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextTransformation
impl Debug for TextTransformation
source§impl PartialEq for TextTransformation
impl PartialEq for TextTransformation
source§fn eq(&self, other: &TextTransformation) -> bool
fn eq(&self, other: &TextTransformation) -> bool
self
and other
values to be equal, and is used
by ==
.