Struct aws_sdk_sesv2::types::builders::EmailContentBuilder
source · #[non_exhaustive]pub struct EmailContentBuilder { /* private fields */ }
Expand description
A builder for EmailContent
.
Implementations§
source§impl EmailContentBuilder
impl EmailContentBuilder
sourcepub fn simple(self, input: Message) -> Self
pub fn simple(self, input: Message) -> Self
The simple email message. The message consists of a subject and a message body.
sourcepub fn set_simple(self, input: Option<Message>) -> Self
pub fn set_simple(self, input: Option<Message>) -> Self
The simple email message. The message consists of a subject and a message body.
sourcepub fn get_simple(&self) -> &Option<Message>
pub fn get_simple(&self) -> &Option<Message>
The simple email message. The message consists of a subject and a message body.
sourcepub fn raw(self, input: RawMessage) -> Self
pub fn raw(self, input: RawMessage) -> Self
The raw email message. The message has to meet the following criteria:
-
The message has to contain a header and a body, separated by one blank line.
-
All of the required header fields must be present in the message.
-
Each part of a multipart MIME message must be formatted properly.
-
If you include attachments, they must be in a file format that the Amazon SES API v2 supports.
-
The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.
-
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
-
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
sourcepub fn set_raw(self, input: Option<RawMessage>) -> Self
pub fn set_raw(self, input: Option<RawMessage>) -> Self
The raw email message. The message has to meet the following criteria:
-
The message has to contain a header and a body, separated by one blank line.
-
All of the required header fields must be present in the message.
-
Each part of a multipart MIME message must be formatted properly.
-
If you include attachments, they must be in a file format that the Amazon SES API v2 supports.
-
The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.
-
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
-
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
sourcepub fn get_raw(&self) -> &Option<RawMessage>
pub fn get_raw(&self) -> &Option<RawMessage>
The raw email message. The message has to meet the following criteria:
-
The message has to contain a header and a body, separated by one blank line.
-
All of the required header fields must be present in the message.
-
Each part of a multipart MIME message must be formatted properly.
-
If you include attachments, they must be in a file format that the Amazon SES API v2 supports.
-
The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.
-
If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
-
The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.
sourcepub fn set_template(self, input: Option<Template>) -> Self
pub fn set_template(self, input: Option<Template>) -> Self
The template to use for the email message.
sourcepub fn get_template(&self) -> &Option<Template>
pub fn get_template(&self) -> &Option<Template>
The template to use for the email message.
sourcepub fn build(self) -> EmailContent
pub fn build(self) -> EmailContent
Consumes the builder and constructs a EmailContent
.
Trait Implementations§
source§impl Clone for EmailContentBuilder
impl Clone for EmailContentBuilder
source§fn clone(&self) -> EmailContentBuilder
fn clone(&self) -> EmailContentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EmailContentBuilder
impl Debug for EmailContentBuilder
source§impl Default for EmailContentBuilder
impl Default for EmailContentBuilder
source§fn default() -> EmailContentBuilder
fn default() -> EmailContentBuilder
source§impl PartialEq for EmailContentBuilder
impl PartialEq for EmailContentBuilder
source§fn eq(&self, other: &EmailContentBuilder) -> bool
fn eq(&self, other: &EmailContentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EmailContentBuilder
Auto Trait Implementations§
impl Freeze for EmailContentBuilder
impl RefUnwindSafe for EmailContentBuilder
impl Send for EmailContentBuilder
impl Sync for EmailContentBuilder
impl Unpin for EmailContentBuilder
impl UnwindSafe for EmailContentBuilder
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