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 ==
.impl StructuralPartialEq for TextTransformation
Auto Trait Implementations§
impl Freeze for TextTransformation
impl RefUnwindSafe for TextTransformation
impl Send for TextTransformation
impl Sync for TextTransformation
impl Unpin for TextTransformation
impl UnwindSafe for TextTransformation
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