Struct aws_sdk_sesv2::types::builders::ContentBuilder
source · #[non_exhaustive]pub struct ContentBuilder { /* private fields */ }Expand description
A builder for Content.
Implementations§
source§impl ContentBuilder
impl ContentBuilder
sourcepub fn data(self, input: impl Into<String>) -> Self
pub fn data(self, input: impl Into<String>) -> Self
The content of the message itself.
This field is required.sourcepub fn charset(self, input: impl Into<String>) -> Self
pub fn charset(self, input: impl Into<String>) -> Self
The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.
sourcepub fn set_charset(self, input: Option<String>) -> Self
pub fn set_charset(self, input: Option<String>) -> Self
The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.
sourcepub fn get_charset(&self) -> &Option<String>
pub fn get_charset(&self) -> &Option<String>
The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.
Trait Implementations§
source§impl Clone for ContentBuilder
impl Clone for ContentBuilder
source§fn clone(&self) -> ContentBuilder
fn clone(&self) -> ContentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ContentBuilder
impl Debug for ContentBuilder
source§impl Default for ContentBuilder
impl Default for ContentBuilder
source§fn default() -> ContentBuilder
fn default() -> ContentBuilder
source§impl PartialEq for ContentBuilder
impl PartialEq for ContentBuilder
source§fn eq(&self, other: &ContentBuilder) -> bool
fn eq(&self, other: &ContentBuilder) -> bool
self and other values to be equal, and is used
by ==.