Struct aws_sdk_wafv2::types::AddressField
source · #[non_exhaustive]pub struct AddressField {
pub identifier: String,
}
Expand description
The name of a field in the request payload that contains part or all of your customer's primary physical address.
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 address field.
How you specify the address 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": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }
, the address field idenfiers are/form/primaryaddressline1
,/form/primaryaddressline2
, and/form/primaryaddressline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryaddressline1
,primaryaddressline2
, andprimaryaddressline3
, the address fields identifiers areprimaryaddressline1
,primaryaddressline2
, andprimaryaddressline3
.
Implementations§
source§impl AddressField
impl AddressField
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The name of a single primary address field.
How you specify the address 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": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }
, the address field idenfiers are/form/primaryaddressline1
,/form/primaryaddressline2
, and/form/primaryaddressline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryaddressline1
,primaryaddressline2
, andprimaryaddressline3
, the address fields identifiers areprimaryaddressline1
,primaryaddressline2
, andprimaryaddressline3
.
source§impl AddressField
impl AddressField
sourcepub fn builder() -> AddressFieldBuilder
pub fn builder() -> AddressFieldBuilder
Creates a new builder-style object to manufacture AddressField
.
Trait Implementations§
source§impl Clone for AddressField
impl Clone for AddressField
source§fn clone(&self) -> AddressField
fn clone(&self) -> AddressField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddressField
impl Debug for AddressField
source§impl PartialEq for AddressField
impl PartialEq for AddressField
source§fn eq(&self, other: &AddressField) -> bool
fn eq(&self, other: &AddressField) -> bool
self
and other
values to be equal, and is used
by ==
.