Struct aws_sdk_wafv2::types::builders::UsernameFieldBuilder
source · #[non_exhaustive]pub struct UsernameFieldBuilder { /* private fields */ }
Expand description
A builder for UsernameField
.
Implementations§
source§impl UsernameFieldBuilder
impl UsernameFieldBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
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
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
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
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<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
sourcepub fn build(self) -> Result<UsernameField, BuildError>
pub fn build(self) -> Result<UsernameField, BuildError>
Consumes the builder and constructs a UsernameField
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UsernameFieldBuilder
impl Clone for UsernameFieldBuilder
source§fn clone(&self) -> UsernameFieldBuilder
fn clone(&self) -> UsernameFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsernameFieldBuilder
impl Debug for UsernameFieldBuilder
source§impl Default for UsernameFieldBuilder
impl Default for UsernameFieldBuilder
source§fn default() -> UsernameFieldBuilder
fn default() -> UsernameFieldBuilder
source§impl PartialEq for UsernameFieldBuilder
impl PartialEq for UsernameFieldBuilder
source§fn eq(&self, other: &UsernameFieldBuilder) -> bool
fn eq(&self, other: &UsernameFieldBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsernameFieldBuilder
Auto Trait Implementations§
impl Freeze for UsernameFieldBuilder
impl RefUnwindSafe for UsernameFieldBuilder
impl Send for UsernameFieldBuilder
impl Sync for UsernameFieldBuilder
impl Unpin for UsernameFieldBuilder
impl UnwindSafe for UsernameFieldBuilder
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