#[non_exhaustive]pub struct CustomerProfileAttributes {Show 58 fields
pub profile_id: Option<String>,
pub profile_arn: Option<String>,
pub first_name: Option<String>,
pub middle_name: Option<String>,
pub last_name: Option<String>,
pub account_number: Option<String>,
pub email_address: Option<String>,
pub phone_number: Option<String>,
pub additional_information: Option<String>,
pub party_type: Option<String>,
pub business_name: Option<String>,
pub birth_date: Option<String>,
pub gender: Option<String>,
pub mobile_phone_number: Option<String>,
pub home_phone_number: Option<String>,
pub business_phone_number: Option<String>,
pub business_email_address: Option<String>,
pub address1: Option<String>,
pub address2: Option<String>,
pub address3: Option<String>,
pub address4: Option<String>,
pub city: Option<String>,
pub county: Option<String>,
pub country: Option<String>,
pub postal_code: Option<String>,
pub province: Option<String>,
pub state: Option<String>,
pub shipping_address1: Option<String>,
pub shipping_address2: Option<String>,
pub shipping_address3: Option<String>,
pub shipping_address4: Option<String>,
pub shipping_city: Option<String>,
pub shipping_county: Option<String>,
pub shipping_country: Option<String>,
pub shipping_postal_code: Option<String>,
pub shipping_province: Option<String>,
pub shipping_state: Option<String>,
pub mailing_address1: Option<String>,
pub mailing_address2: Option<String>,
pub mailing_address3: Option<String>,
pub mailing_address4: Option<String>,
pub mailing_city: Option<String>,
pub mailing_county: Option<String>,
pub mailing_country: Option<String>,
pub mailing_postal_code: Option<String>,
pub mailing_province: Option<String>,
pub mailing_state: Option<String>,
pub billing_address1: Option<String>,
pub billing_address2: Option<String>,
pub billing_address3: Option<String>,
pub billing_address4: Option<String>,
pub billing_city: Option<String>,
pub billing_county: Option<String>,
pub billing_country: Option<String>,
pub billing_postal_code: Option<String>,
pub billing_province: Option<String>,
pub billing_state: Option<String>,
pub custom: Option<HashMap<String, String>>,
}
Expand description
The customer profile attributes that are used with the message template.
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.
profile_arn: Option<String>
The ARN of a customer profile.
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.
account_number: Option<String>
A unique account number that you have given to the customer.
email_address: Option<String>
The customer's email address, which has not been specified as a personal or business address.
phone_number: Option<String>
The customer's phone number, which has not been specified as a mobile, home, or business number.
additional_information: Option<String>
Any additional information relevant to the customer's profile.
party_type: Option<String>
The customer's party type.
business_name: Option<String>
The name of the customer's business.
birth_date: Option<String>
The customer's birth date.
gender: Option<String>
The customer's gender.
mobile_phone_number: Option<String>
The customer's mobile phone number.
home_phone_number: Option<String>
The customer's mobile phone number.
business_phone_number: Option<String>
The customer's business phone number.
business_email_address: Option<String>
The customer's business email address.
address1: Option<String>
The first line of a customer address.
address2: Option<String>
The second line of a customer address.
address3: Option<String>
The third line of a customer address.
address4: Option<String>
The fourth line of a customer address.
city: Option<String>
The city in which a customer lives.
county: Option<String>
The county in which a customer lives.
country: Option<String>
The country in which a customer lives.
postal_code: Option<String>
The postal code of a customer address.
province: Option<String>
The province in which a customer lives.
state: Option<String>
The state in which a customer lives.
shipping_address1: Option<String>
The first line of a customer’s shipping address.
shipping_address2: Option<String>
The second line of a customer’s shipping address.
shipping_address3: Option<String>
The third line of a customer’s shipping address.
shipping_address4: Option<String>
The fourth line of a customer’s shipping address.
shipping_city: Option<String>
The city of a customer’s shipping address.
shipping_county: Option<String>
The county of a customer’s shipping address.
shipping_country: Option<String>
The country of a customer’s shipping address.
shipping_postal_code: Option<String>
The postal code of a customer’s shipping address.
shipping_province: Option<String>
The province of a customer’s shipping address.
shipping_state: Option<String>
The state of a customer’s shipping address.
mailing_address1: Option<String>
The first line of a customer’s mailing address.
mailing_address2: Option<String>
The second line of a customer’s mailing address.
mailing_address3: Option<String>
The third line of a customer’s mailing address.
mailing_address4: Option<String>
The fourth line of a customer’s mailing address.
mailing_city: Option<String>
The city of a customer’s mailing address.
mailing_county: Option<String>
The county of a customer’s mailing address.
mailing_country: Option<String>
The country of a customer’s mailing address.
mailing_postal_code: Option<String>
The postal code of a customer’s mailing address.
mailing_province: Option<String>
The province of a customer’s mailing address.
mailing_state: Option<String>
The state of a customer’s mailing address.
billing_address1: Option<String>
The first line of a customer’s billing address.
billing_address2: Option<String>
The second line of a customer’s billing address.
billing_address3: Option<String>
The third line of a customer’s billing address.
billing_address4: Option<String>
The fourth line of a customer’s billing address.
billing_city: Option<String>
The city of a customer’s billing address.
billing_county: Option<String>
The county of a customer’s billing address.
billing_country: Option<String>
The country of a customer’s billing address.
billing_postal_code: Option<String>
The postal code of a customer’s billing address.
billing_province: Option<String>
The province of a customer’s billing address.
billing_state: Option<String>
The state of a customer’s billing address.
custom: Option<HashMap<String, String>>
The custom attributes in customer profile attributes.
Implementations§
Source§impl CustomerProfileAttributes
impl CustomerProfileAttributes
Sourcepub fn profile_id(&self) -> Option<&str>
pub fn profile_id(&self) -> Option<&str>
The unique identifier of a customer profile.
Sourcepub fn profile_arn(&self) -> Option<&str>
pub fn profile_arn(&self) -> Option<&str>
The ARN of a customer profile.
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 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 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 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 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<&str>
pub fn party_type(&self) -> Option<&str>
The customer's party type.
Sourcepub fn business_name(&self) -> Option<&str>
pub fn business_name(&self) -> Option<&str>
The name of the customer's business.
Sourcepub fn birth_date(&self) -> Option<&str>
pub fn birth_date(&self) -> Option<&str>
The customer's birth date.
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 mobile phone number.
Sourcepub fn business_phone_number(&self) -> Option<&str>
pub fn business_phone_number(&self) -> Option<&str>
The customer's business phone number.
Sourcepub fn business_email_address(&self) -> Option<&str>
pub fn business_email_address(&self) -> Option<&str>
The customer's business email address.
Sourcepub fn postal_code(&self) -> Option<&str>
pub fn postal_code(&self) -> Option<&str>
The postal code of a customer address.
Sourcepub fn shipping_address1(&self) -> Option<&str>
pub fn shipping_address1(&self) -> Option<&str>
The first line of a customer’s shipping address.
Sourcepub fn shipping_address2(&self) -> Option<&str>
pub fn shipping_address2(&self) -> Option<&str>
The second line of a customer’s shipping address.
Sourcepub fn shipping_address3(&self) -> Option<&str>
pub fn shipping_address3(&self) -> Option<&str>
The third line of a customer’s shipping address.
Sourcepub fn shipping_address4(&self) -> Option<&str>
pub fn shipping_address4(&self) -> Option<&str>
The fourth line of a customer’s shipping address.
Sourcepub fn shipping_city(&self) -> Option<&str>
pub fn shipping_city(&self) -> Option<&str>
The city of a customer’s shipping address.
Sourcepub fn shipping_county(&self) -> Option<&str>
pub fn shipping_county(&self) -> Option<&str>
The county of a customer’s shipping address.
Sourcepub fn shipping_country(&self) -> Option<&str>
pub fn shipping_country(&self) -> Option<&str>
The country of a customer’s shipping address.
Sourcepub fn shipping_postal_code(&self) -> Option<&str>
pub fn shipping_postal_code(&self) -> Option<&str>
The postal code of a customer’s shipping address.
Sourcepub fn shipping_province(&self) -> Option<&str>
pub fn shipping_province(&self) -> Option<&str>
The province of a customer’s shipping address.
Sourcepub fn shipping_state(&self) -> Option<&str>
pub fn shipping_state(&self) -> Option<&str>
The state of a customer’s shipping address.
Sourcepub fn mailing_address1(&self) -> Option<&str>
pub fn mailing_address1(&self) -> Option<&str>
The first line of a customer’s mailing address.
Sourcepub fn mailing_address2(&self) -> Option<&str>
pub fn mailing_address2(&self) -> Option<&str>
The second line of a customer’s mailing address.
Sourcepub fn mailing_address3(&self) -> Option<&str>
pub fn mailing_address3(&self) -> Option<&str>
The third line of a customer’s mailing address.
Sourcepub fn mailing_address4(&self) -> Option<&str>
pub fn mailing_address4(&self) -> Option<&str>
The fourth line of a customer’s mailing address.
Sourcepub fn mailing_city(&self) -> Option<&str>
pub fn mailing_city(&self) -> Option<&str>
The city of a customer’s mailing address.
Sourcepub fn mailing_county(&self) -> Option<&str>
pub fn mailing_county(&self) -> Option<&str>
The county of a customer’s mailing address.
Sourcepub fn mailing_country(&self) -> Option<&str>
pub fn mailing_country(&self) -> Option<&str>
The country of a customer’s mailing address.
Sourcepub fn mailing_postal_code(&self) -> Option<&str>
pub fn mailing_postal_code(&self) -> Option<&str>
The postal code of a customer’s mailing address.
Sourcepub fn mailing_province(&self) -> Option<&str>
pub fn mailing_province(&self) -> Option<&str>
The province of a customer’s mailing address.
Sourcepub fn mailing_state(&self) -> Option<&str>
pub fn mailing_state(&self) -> Option<&str>
The state of a customer’s mailing address.
Sourcepub fn billing_address1(&self) -> Option<&str>
pub fn billing_address1(&self) -> Option<&str>
The first line of a customer’s billing address.
Sourcepub fn billing_address2(&self) -> Option<&str>
pub fn billing_address2(&self) -> Option<&str>
The second line of a customer’s billing address.
Sourcepub fn billing_address3(&self) -> Option<&str>
pub fn billing_address3(&self) -> Option<&str>
The third line of a customer’s billing address.
Sourcepub fn billing_address4(&self) -> Option<&str>
pub fn billing_address4(&self) -> Option<&str>
The fourth line of a customer’s billing address.
Sourcepub fn billing_city(&self) -> Option<&str>
pub fn billing_city(&self) -> Option<&str>
The city of a customer’s billing address.
Sourcepub fn billing_county(&self) -> Option<&str>
pub fn billing_county(&self) -> Option<&str>
The county of a customer’s billing address.
Sourcepub fn billing_country(&self) -> Option<&str>
pub fn billing_country(&self) -> Option<&str>
The country of a customer’s billing address.
Sourcepub fn billing_postal_code(&self) -> Option<&str>
pub fn billing_postal_code(&self) -> Option<&str>
The postal code of a customer’s billing address.
Sourcepub fn billing_province(&self) -> Option<&str>
pub fn billing_province(&self) -> Option<&str>
The province of a customer’s billing address.
Sourcepub fn billing_state(&self) -> Option<&str>
pub fn billing_state(&self) -> Option<&str>
The state of a customer’s billing address.
Source§impl CustomerProfileAttributes
impl CustomerProfileAttributes
Sourcepub fn builder() -> CustomerProfileAttributesBuilder
pub fn builder() -> CustomerProfileAttributesBuilder
Creates a new builder-style object to manufacture CustomerProfileAttributes
.
Trait Implementations§
Source§impl Clone for CustomerProfileAttributes
impl Clone for CustomerProfileAttributes
Source§fn clone(&self) -> CustomerProfileAttributes
fn clone(&self) -> CustomerProfileAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomerProfileAttributes
impl Debug for CustomerProfileAttributes
impl StructuralPartialEq for CustomerProfileAttributes
Auto Trait Implementations§
impl Freeze for CustomerProfileAttributes
impl RefUnwindSafe for CustomerProfileAttributes
impl Send for CustomerProfileAttributes
impl Sync for CustomerProfileAttributes
impl Unpin for CustomerProfileAttributes
impl UnwindSafe for CustomerProfileAttributes
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);