Struct aws_sdk_wafv2::types::PasswordField
source · #[non_exhaustive]pub struct PasswordField {
pub identifier: String,
}
Expand description
The name of the field in the request payload that contains your customer's password.
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: 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
.
Implementations§
source§impl PasswordField
impl PasswordField
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
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
.
source§impl PasswordField
impl PasswordField
sourcepub fn builder() -> PasswordFieldBuilder
pub fn builder() -> PasswordFieldBuilder
Creates a new builder-style object to manufacture PasswordField
.
Trait Implementations§
source§impl Clone for PasswordField
impl Clone for PasswordField
source§fn clone(&self) -> PasswordField
fn clone(&self) -> PasswordField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PasswordField
impl Debug for PasswordField
source§impl PartialEq for PasswordField
impl PartialEq for PasswordField
source§fn eq(&self, other: &PasswordField) -> bool
fn eq(&self, other: &PasswordField) -> bool
self
and other
values to be equal, and is used
by ==
.