#[non_exhaustive]pub struct MessageTemplateType {
pub sms_message: Option<String>,
pub email_message: Option<String>,
pub email_subject: Option<String>,
}Expand description
The message template structure.
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.sms_message: Option<String>The message template for SMS messages.
email_message: Option<String>The message template for email messages. EmailMessage is allowed only if EmailSendingAccount is DEVELOPER.
email_subject: Option<String>The subject line for email messages. EmailSubject is allowed only if EmailSendingAccount is DEVELOPER.
Implementations§
source§impl MessageTemplateType
impl MessageTemplateType
sourcepub fn sms_message(&self) -> Option<&str>
pub fn sms_message(&self) -> Option<&str>
The message template for SMS messages.
sourcepub fn email_message(&self) -> Option<&str>
pub fn email_message(&self) -> Option<&str>
The message template for email messages. EmailMessage is allowed only if EmailSendingAccount is DEVELOPER.
sourcepub fn email_subject(&self) -> Option<&str>
pub fn email_subject(&self) -> Option<&str>
The subject line for email messages. EmailSubject is allowed only if EmailSendingAccount is DEVELOPER.
source§impl MessageTemplateType
impl MessageTemplateType
sourcepub fn builder() -> MessageTemplateTypeBuilder
pub fn builder() -> MessageTemplateTypeBuilder
Creates a new builder-style object to manufacture MessageTemplateType.
Trait Implementations§
source§impl Clone for MessageTemplateType
impl Clone for MessageTemplateType
source§fn clone(&self) -> MessageTemplateType
fn clone(&self) -> MessageTemplateType
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 MessageTemplateType
impl Debug for MessageTemplateType
source§impl PartialEq for MessageTemplateType
impl PartialEq for MessageTemplateType
source§fn eq(&self, other: &MessageTemplateType) -> bool
fn eq(&self, other: &MessageTemplateType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MessageTemplateType
Auto Trait Implementations§
impl RefUnwindSafe for MessageTemplateType
impl Send for MessageTemplateType
impl Sync for MessageTemplateType
impl Unpin for MessageTemplateType
impl UnwindSafe for MessageTemplateType
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.