Struct aws_sdk_sesv2::types::Destination
source · #[non_exhaustive]pub struct Destination {
pub to_addresses: Option<Vec<String>>,
pub cc_addresses: Option<Vec<String>>,
pub bcc_addresses: Option<Vec<String>>,
}
Expand description
An object that describes the recipients for an email.
Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a destination email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492.
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.to_addresses: Option<Vec<String>>
An array that contains the email addresses of the "To" recipients for the email.
cc_addresses: Option<Vec<String>>
An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.
bcc_addresses: Option<Vec<String>>
An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.
Implementations§
source§impl Destination
impl Destination
sourcepub fn to_addresses(&self) -> &[String]
pub fn to_addresses(&self) -> &[String]
An array that contains the email addresses of the "To" recipients for the email.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .to_addresses.is_none()
.
sourcepub fn cc_addresses(&self) -> &[String]
pub fn cc_addresses(&self) -> &[String]
An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cc_addresses.is_none()
.
sourcepub fn bcc_addresses(&self) -> &[String]
pub fn bcc_addresses(&self) -> &[String]
An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .bcc_addresses.is_none()
.
source§impl Destination
impl Destination
sourcepub fn builder() -> DestinationBuilder
pub fn builder() -> DestinationBuilder
Creates a new builder-style object to manufacture Destination
.
Trait Implementations§
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Destination
impl Debug for Destination
source§impl PartialEq for Destination
impl PartialEq for Destination
source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnwindSafe for Destination
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