pub struct UpsertTemplateRequest {
pub name: Option<String>,
pub subject: Option<Option<String>>,
pub markup: Option<Option<String>>,
pub body: Option<String>,
pub delivered_by_clerk: Option<Option<bool>>,
pub from_email_name: Option<String>,
}Fields§
§name: Option<String>The user-friendly name of the template
subject: Option<Option<String>>The email subject. Applicable only to email templates.
markup: Option<Option<String>>The editor markup used to generate the body of the template
body: Option<String>The template body before variable interpolation
delivered_by_clerk: Option<Option<bool>>Whether Clerk should deliver emails or SMS messages based on the current template
from_email_name: Option<String>The local part of the From email address that will be used for emails. For example, in the address ‘hello@example.com’, the local part is ‘hello’. Applicable only to email templates.
Implementations§
Source§impl UpsertTemplateRequest
impl UpsertTemplateRequest
pub fn new() -> UpsertTemplateRequest
Trait Implementations§
Source§impl Clone for UpsertTemplateRequest
impl Clone for UpsertTemplateRequest
Source§fn clone(&self) -> UpsertTemplateRequest
fn clone(&self) -> UpsertTemplateRequest
Returns a duplicate 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 UpsertTemplateRequest
impl Debug for UpsertTemplateRequest
Source§impl<'de> Deserialize<'de> for UpsertTemplateRequest
impl<'de> Deserialize<'de> for UpsertTemplateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpsertTemplateRequest
impl PartialEq for UpsertTemplateRequest
Source§impl Serialize for UpsertTemplateRequest
impl Serialize for UpsertTemplateRequest
impl StructuralPartialEq for UpsertTemplateRequest
Auto Trait Implementations§
impl Freeze for UpsertTemplateRequest
impl RefUnwindSafe for UpsertTemplateRequest
impl Send for UpsertTemplateRequest
impl Sync for UpsertTemplateRequest
impl Unpin for UpsertTemplateRequest
impl UnwindSafe for UpsertTemplateRequest
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