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