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