Struct aws_sdk_wafv2::types::EmailField
source · #[non_exhaustive]pub struct EmailField {
pub identifier: String,
}
Expand description
The name of the field in the request payload that contains your customer's email.
This data type is used in the RequestInspectionACFP
data type.
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 email 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": { "email": "THE_EMAIL" } }
, the email field specification is/form/email
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
email1
, the email field specification isemail1
.
Implementations§
source§impl EmailField
impl EmailField
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The name of the email 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": { "email": "THE_EMAIL" } }
, the email field specification is/form/email
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
email1
, the email field specification isemail1
.
source§impl EmailField
impl EmailField
sourcepub fn builder() -> EmailFieldBuilder
pub fn builder() -> EmailFieldBuilder
Creates a new builder-style object to manufacture EmailField
.
Trait Implementations§
source§impl Clone for EmailField
impl Clone for EmailField
source§fn clone(&self) -> EmailField
fn clone(&self) -> EmailField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EmailField
impl Debug for EmailField
source§impl PartialEq for EmailField
impl PartialEq for EmailField
source§fn eq(&self, other: &EmailField) -> bool
fn eq(&self, other: &EmailField) -> bool
self
and other
values to be equal, and is used
by ==
.