#[non_exhaustive]pub struct TestRenderTemplateInput {
pub template_name: Option<String>,
pub template_data: Option<String>,
}
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 to render.
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 TestRenderTemplateInput
impl TestRenderTemplateInput
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the template to render.
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 TestRenderTemplateInput
impl TestRenderTemplateInput
sourcepub fn builder() -> TestRenderTemplateInputBuilder
pub fn builder() -> TestRenderTemplateInputBuilder
Creates a new builder-style object to manufacture TestRenderTemplateInput
.
Trait Implementations§
source§impl Clone for TestRenderTemplateInput
impl Clone for TestRenderTemplateInput
source§fn clone(&self) -> TestRenderTemplateInput
fn clone(&self) -> TestRenderTemplateInput
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 TestRenderTemplateInput
impl Debug for TestRenderTemplateInput
source§impl PartialEq for TestRenderTemplateInput
impl PartialEq for TestRenderTemplateInput
source§fn eq(&self, other: &TestRenderTemplateInput) -> bool
fn eq(&self, other: &TestRenderTemplateInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestRenderTemplateInput
Auto Trait Implementations§
impl Freeze for TestRenderTemplateInput
impl RefUnwindSafe for TestRenderTemplateInput
impl Send for TestRenderTemplateInput
impl Sync for TestRenderTemplateInput
impl Unpin for TestRenderTemplateInput
impl UnwindSafe for TestRenderTemplateInput
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.