Struct aws_sdk_customerprofiles::types::Profile
source · #[non_exhaustive]pub struct Profile {Show 25 fields
pub profile_id: Option<String>,
pub account_number: Option<String>,
pub additional_information: Option<String>,
pub party_type: Option<PartyType>,
pub business_name: Option<String>,
pub first_name: Option<String>,
pub middle_name: Option<String>,
pub last_name: Option<String>,
pub birth_date: Option<String>,
pub gender: Option<Gender>,
pub phone_number: Option<String>,
pub mobile_phone_number: Option<String>,
pub home_phone_number: Option<String>,
pub business_phone_number: Option<String>,
pub email_address: Option<String>,
pub personal_email_address: Option<String>,
pub business_email_address: Option<String>,
pub address: Option<Address>,
pub shipping_address: Option<Address>,
pub mailing_address: Option<Address>,
pub billing_address: Option<Address>,
pub attributes: Option<HashMap<String, String>>,
pub found_by_items: Option<Vec<FoundByKeyValue>>,
pub party_type_string: Option<String>,
pub gender_string: Option<String>,
}
Expand description
The standard profile of a customer.
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.profile_id: Option<String>
The unique identifier of a customer profile.
account_number: Option<String>
A unique account number that you have given to the customer.
additional_information: Option<String>
Any additional information relevant to the customer’s profile.
party_type: Option<PartyType>
The type of profile used to describe the customer.
business_name: Option<String>
The name of the customer’s business.
first_name: Option<String>
The customer’s first name.
middle_name: Option<String>
The customer’s middle name.
last_name: Option<String>
The customer’s last name.
birth_date: Option<String>
The customer’s birth date.
gender: Option<Gender>
The gender with which the customer identifies.
phone_number: Option<String>
The customer's phone number, which has not been specified as a mobile, home, or business number.
mobile_phone_number: Option<String>
The customer’s mobile phone number.
home_phone_number: Option<String>
The customer’s home phone number.
business_phone_number: Option<String>
The customer’s home phone number.
email_address: Option<String>
The customer’s email address, which has not been specified as a personal or business address.
personal_email_address: Option<String>
The customer’s personal email address.
business_email_address: Option<String>
The customer’s business email address.
address: Option<Address>
A generic address associated with the customer that is not mailing, shipping, or billing.
shipping_address: Option<Address>
The customer’s shipping address.
mailing_address: Option<Address>
The customer’s mailing address.
billing_address: Option<Address>
The customer’s billing address.
attributes: Option<HashMap<String, String>>
A key value pair of attributes of a customer profile.
found_by_items: Option<Vec<FoundByKeyValue>>
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional AdditionalSearchKeys
parameter was included in the SearchProfiles request, the FoundByItems
list should be interpreted based on the LogicalOperator
used in the request:
-
AND
- The profile included in the response matched all of the search keys specified in the request. TheFoundByItems
will include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofAND
search logic). -
OR
- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItems
will include each of the key-value(s) pairs that the profile was found by.
The OR
relationship is the default behavior if the LogicalOperator
parameter is not included in the SearchProfiles request.
party_type_string: Option<String>
An alternative to PartyType which accepts any string as input.
gender_string: Option<String>
An alternative to Gender which accepts any string as input.
Implementations§
source§impl Profile
impl Profile
sourcepub fn profile_id(&self) -> Option<&str>
pub fn profile_id(&self) -> Option<&str>
The unique identifier of a customer profile.
sourcepub fn account_number(&self) -> Option<&str>
pub fn account_number(&self) -> Option<&str>
A unique account number that you have given to the customer.
sourcepub fn additional_information(&self) -> Option<&str>
pub fn additional_information(&self) -> Option<&str>
Any additional information relevant to the customer’s profile.
sourcepub fn party_type(&self) -> Option<&PartyType>
pub fn party_type(&self) -> Option<&PartyType>
The type of profile used to describe the customer.
sourcepub fn business_name(&self) -> Option<&str>
pub fn business_name(&self) -> Option<&str>
The name of the customer’s business.
sourcepub fn first_name(&self) -> Option<&str>
pub fn first_name(&self) -> Option<&str>
The customer’s first name.
sourcepub fn middle_name(&self) -> Option<&str>
pub fn middle_name(&self) -> Option<&str>
The customer’s middle name.
sourcepub fn birth_date(&self) -> Option<&str>
pub fn birth_date(&self) -> Option<&str>
The customer’s birth date.
sourcepub fn phone_number(&self) -> Option<&str>
pub fn phone_number(&self) -> Option<&str>
The customer's phone number, which has not been specified as a mobile, home, or business number.
sourcepub fn mobile_phone_number(&self) -> Option<&str>
pub fn mobile_phone_number(&self) -> Option<&str>
The customer’s mobile phone number.
sourcepub fn home_phone_number(&self) -> Option<&str>
pub fn home_phone_number(&self) -> Option<&str>
The customer’s home phone number.
sourcepub fn business_phone_number(&self) -> Option<&str>
pub fn business_phone_number(&self) -> Option<&str>
The customer’s home phone number.
sourcepub fn email_address(&self) -> Option<&str>
pub fn email_address(&self) -> Option<&str>
The customer’s email address, which has not been specified as a personal or business address.
sourcepub fn personal_email_address(&self) -> Option<&str>
pub fn personal_email_address(&self) -> Option<&str>
The customer’s personal email address.
sourcepub fn business_email_address(&self) -> Option<&str>
pub fn business_email_address(&self) -> Option<&str>
The customer’s business email address.
sourcepub fn address(&self) -> Option<&Address>
pub fn address(&self) -> Option<&Address>
A generic address associated with the customer that is not mailing, shipping, or billing.
sourcepub fn shipping_address(&self) -> Option<&Address>
pub fn shipping_address(&self) -> Option<&Address>
The customer’s shipping address.
sourcepub fn mailing_address(&self) -> Option<&Address>
pub fn mailing_address(&self) -> Option<&Address>
The customer’s mailing address.
sourcepub fn billing_address(&self) -> Option<&Address>
pub fn billing_address(&self) -> Option<&Address>
The customer’s billing address.
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
A key value pair of attributes of a customer profile.
sourcepub fn found_by_items(&self) -> &[FoundByKeyValue]
pub fn found_by_items(&self) -> &[FoundByKeyValue]
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional AdditionalSearchKeys
parameter was included in the SearchProfiles request, the FoundByItems
list should be interpreted based on the LogicalOperator
used in the request:
-
AND
- The profile included in the response matched all of the search keys specified in the request. TheFoundByItems
will include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofAND
search logic). -
OR
- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItems
will include each of the key-value(s) pairs that the profile was found by.
The OR
relationship is the default behavior if the LogicalOperator
parameter is not included in the SearchProfiles request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .found_by_items.is_none()
.
sourcepub fn party_type_string(&self) -> Option<&str>
pub fn party_type_string(&self) -> Option<&str>
An alternative to PartyType which accepts any string as input.
sourcepub fn gender_string(&self) -> Option<&str>
pub fn gender_string(&self) -> Option<&str>
An alternative to Gender which accepts any string as input.
Trait Implementations§
source§impl PartialEq for Profile
impl PartialEq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more