Struct aws_sdk_wafv2::types::PhoneNumberField
source · #[non_exhaustive]pub struct PhoneNumberField {
pub identifier: String,
}
Expand description
The name of a field in the request payload that contains part or all of your customer's primary phone number.
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 a single primary phone number field.
How you specify the phone number fields depends on the request inspection payload type.
-
For JSON payloads, specify the field identifiers 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": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }
, the phone number field identifiers are/form/primaryphoneline1
,/form/primaryphoneline2
, and/form/primaryphoneline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
, the phone number field identifiers areprimaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
.
Implementations§
source§impl PhoneNumberField
impl PhoneNumberField
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The name of a single primary phone number field.
How you specify the phone number fields depends on the request inspection payload type.
-
For JSON payloads, specify the field identifiers 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": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }
, the phone number field identifiers are/form/primaryphoneline1
,/form/primaryphoneline2
, and/form/primaryphoneline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
, the phone number field identifiers areprimaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
.
source§impl PhoneNumberField
impl PhoneNumberField
sourcepub fn builder() -> PhoneNumberFieldBuilder
pub fn builder() -> PhoneNumberFieldBuilder
Creates a new builder-style object to manufacture PhoneNumberField
.
Trait Implementations§
source§impl Clone for PhoneNumberField
impl Clone for PhoneNumberField
source§fn clone(&self) -> PhoneNumberField
fn clone(&self) -> PhoneNumberField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhoneNumberField
impl Debug for PhoneNumberField
source§impl PartialEq for PhoneNumberField
impl PartialEq for PhoneNumberField
source§fn eq(&self, other: &PhoneNumberField) -> bool
fn eq(&self, other: &PhoneNumberField) -> bool
self
and other
values to be equal, and is used
by ==
.