Struct aws_sdk_ses::types::Template
source · #[non_exhaustive]pub struct Template {
pub template_name: String,
pub subject_part: Option<String>,
pub text_part: Option<String>,
pub html_part: Option<String>,
}
Expand description
The content of the email, composed of a subject line and either an HTML part or a text-only part.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.template_name: String
The name of the template. You use this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
subject_part: Option<String>
The subject line of the email.
text_part: Option<String>
The email body that is visible to recipients whose email clients do not display HTML content.
html_part: Option<String>
The HTML body of the email.
Implementations§
source§impl Template
impl Template
sourcepub fn template_name(&self) -> &str
pub fn template_name(&self) -> &str
The name of the template. You use this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
sourcepub fn subject_part(&self) -> Option<&str>
pub fn subject_part(&self) -> Option<&str>
The subject line of the email.
Trait Implementations§
source§impl PartialEq for Template
impl PartialEq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.