Struct aws_sdk_wafv2::types::builders::EmailFieldBuilder
source · #[non_exhaustive]pub struct EmailFieldBuilder { /* private fields */ }
Expand description
A builder for EmailField
.
Implementations§
source§impl EmailFieldBuilder
impl EmailFieldBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
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
.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
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
.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<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
.
sourcepub fn build(self) -> Result<EmailField, BuildError>
pub fn build(self) -> Result<EmailField, BuildError>
Consumes the builder and constructs a EmailField
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EmailFieldBuilder
impl Clone for EmailFieldBuilder
source§fn clone(&self) -> EmailFieldBuilder
fn clone(&self) -> EmailFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EmailFieldBuilder
impl Debug for EmailFieldBuilder
source§impl Default for EmailFieldBuilder
impl Default for EmailFieldBuilder
source§fn default() -> EmailFieldBuilder
fn default() -> EmailFieldBuilder
source§impl PartialEq for EmailFieldBuilder
impl PartialEq for EmailFieldBuilder
source§fn eq(&self, other: &EmailFieldBuilder) -> bool
fn eq(&self, other: &EmailFieldBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.