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 ==
.