Struct aws_sdk_ses::types::BulkEmailDestination
source · #[non_exhaustive]pub struct BulkEmailDestination {
pub destination: Option<Destination>,
pub replacement_tags: Option<Vec<MessageTag>>,
pub replacement_template_data: Option<String>,
}
Expand description
An array that contains one or more Destinations, as well as the tags and replacement data associated with each of those Destinations.
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.destination: Option<Destination>
Represents the destination of the message, consisting of To:, CC:, and BCC: fields.
Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail
. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
replacement_template_data: Option<String>
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
Implementations§
source§impl BulkEmailDestination
impl BulkEmailDestination
sourcepub fn destination(&self) -> Option<&Destination>
pub fn destination(&self) -> Option<&Destination>
Represents the destination of the message, consisting of To:, CC:, and BCC: fields.
Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in Sending raw email using the Amazon SES API. For more information about Punycode, see RFC 3492.
A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail
. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .replacement_tags.is_none()
.
sourcepub fn replacement_template_data(&self) -> Option<&str>
pub fn replacement_template_data(&self) -> Option<&str>
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
source§impl BulkEmailDestination
impl BulkEmailDestination
sourcepub fn builder() -> BulkEmailDestinationBuilder
pub fn builder() -> BulkEmailDestinationBuilder
Creates a new builder-style object to manufacture BulkEmailDestination
.
Trait Implementations§
source§impl Clone for BulkEmailDestination
impl Clone for BulkEmailDestination
source§fn clone(&self) -> BulkEmailDestination
fn clone(&self) -> BulkEmailDestination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BulkEmailDestination
impl Debug for BulkEmailDestination
source§impl PartialEq for BulkEmailDestination
impl PartialEq for BulkEmailDestination
source§fn eq(&self, other: &BulkEmailDestination) -> bool
fn eq(&self, other: &BulkEmailDestination) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BulkEmailDestination
Auto Trait Implementations§
impl Freeze for BulkEmailDestination
impl RefUnwindSafe for BulkEmailDestination
impl Send for BulkEmailDestination
impl Sync for BulkEmailDestination
impl Unpin for BulkEmailDestination
impl UnwindSafe for BulkEmailDestination
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