Struct aws_sdk_wafv2::types::UsernameField
source · #[non_exhaustive]pub struct UsernameField {
pub identifier: Option<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: 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
Implementations§
source§impl UsernameField
impl UsernameField
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&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<UsernameField> for UsernameField
impl PartialEq<UsernameField> 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 ==.