Struct aws_sdk_wafv2::types::UsernameField
source · #[non_exhaustive]pub struct UsernameField {
pub identifier: String,
}
Expand description
The name of the field in the request payload that contains your customer's username.
This data type is used in the RequestInspection
and RequestInspectionACFP
data types.
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.identifier: String
The name of the username field.
How you specify this depends on the request inspection payload type.
-
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "form": { "username": "THE_USERNAME" } }
, the username field specification is/form/username
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
username1
, the username field specification isusername1
Implementations§
source§impl UsernameField
impl UsernameField
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The name of the username field.
How you specify this depends on the request inspection payload type.
-
For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "form": { "username": "THE_USERNAME" } }
, the username field specification is/form/username
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
username1
, the username field specification isusername1
source§impl UsernameField
impl UsernameField
sourcepub fn builder() -> UsernameFieldBuilder
pub fn builder() -> UsernameFieldBuilder
Creates a new builder-style object to manufacture UsernameField
.
Trait Implementations§
source§impl Clone for UsernameField
impl Clone for UsernameField
source§fn clone(&self) -> UsernameField
fn clone(&self) -> UsernameField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsernameField
impl Debug for UsernameField
source§impl PartialEq for UsernameField
impl PartialEq for UsernameField
source§fn eq(&self, other: &UsernameField) -> bool
fn eq(&self, other: &UsernameField) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsernameField
Auto Trait Implementations§
impl Freeze for UsernameField
impl RefUnwindSafe for UsernameField
impl Send for UsernameField
impl Sync for UsernameField
impl Unpin for UsernameField
impl UnwindSafe for UsernameField
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