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 ==
.impl StructuralPartialEq for ContentBuilder
Auto Trait Implementations§
impl Freeze for ContentBuilder
impl RefUnwindSafe for ContentBuilder
impl Send for ContentBuilder
impl Sync for ContentBuilder
impl Unpin for ContentBuilder
impl UnwindSafe for ContentBuilder
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