#[non_exhaustive]pub struct TestRenderEmailTemplateInput {
pub template_name: Option<String>,
pub template_data: Option<String>,
}Expand description
>Represents a request to create a preview of the MIME content of an email when provided with a template and a set of replacement data.
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: Option<String>The name of the template.
template_data: Option<String>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
Implementations§
source§impl TestRenderEmailTemplateInput
impl TestRenderEmailTemplateInput
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the template.
sourcepub fn template_data(&self) -> Option<&str>
pub fn template_data(&self) -> Option<&str>
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
source§impl TestRenderEmailTemplateInput
impl TestRenderEmailTemplateInput
sourcepub fn builder() -> TestRenderEmailTemplateInputBuilder
pub fn builder() -> TestRenderEmailTemplateInputBuilder
Creates a new builder-style object to manufacture TestRenderEmailTemplateInput.
Trait Implementations§
source§impl Clone for TestRenderEmailTemplateInput
impl Clone for TestRenderEmailTemplateInput
source§fn clone(&self) -> TestRenderEmailTemplateInput
fn clone(&self) -> TestRenderEmailTemplateInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TestRenderEmailTemplateInput
impl Debug for TestRenderEmailTemplateInput
source§impl PartialEq for TestRenderEmailTemplateInput
impl PartialEq for TestRenderEmailTemplateInput
source§fn eq(&self, other: &TestRenderEmailTemplateInput) -> bool
fn eq(&self, other: &TestRenderEmailTemplateInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TestRenderEmailTemplateInput
Auto Trait Implementations§
impl RefUnwindSafe for TestRenderEmailTemplateInput
impl Send for TestRenderEmailTemplateInput
impl Sync for TestRenderEmailTemplateInput
impl Unpin for TestRenderEmailTemplateInput
impl UnwindSafe for TestRenderEmailTemplateInput
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.