Struct aws_sdk_sesv2::types::builders::RawMessageBuilder
source · #[non_exhaustive]pub struct RawMessageBuilder { /* private fields */ }Expand description
A builder for RawMessage.
Implementations§
source§impl RawMessageBuilder
impl RawMessageBuilder
sourcepub fn data(self, input: Blob) -> Self
pub fn data(self, input: Blob) -> 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.
-
Attachments must be in a file format that the Amazon SES 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_data(self, input: Option<Blob>) -> Self
pub fn set_data(self, input: Option<Blob>) -> 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.
-
Attachments must be in a file format that the Amazon SES 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_data(&self) -> &Option<Blob>
pub fn get_data(&self) -> &Option<Blob>
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.
-
Attachments must be in a file format that the Amazon SES 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 build(self) -> Result<RawMessage, BuildError>
pub fn build(self) -> Result<RawMessage, BuildError>
Consumes the builder and constructs a RawMessage.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RawMessageBuilder
impl Clone for RawMessageBuilder
source§fn clone(&self) -> RawMessageBuilder
fn clone(&self) -> RawMessageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RawMessageBuilder
impl Debug for RawMessageBuilder
source§impl Default for RawMessageBuilder
impl Default for RawMessageBuilder
source§fn default() -> RawMessageBuilder
fn default() -> RawMessageBuilder
source§impl PartialEq for RawMessageBuilder
impl PartialEq for RawMessageBuilder
source§fn eq(&self, other: &RawMessageBuilder) -> bool
fn eq(&self, other: &RawMessageBuilder) -> bool
self and other values to be equal, and is used
by ==.