pub struct UpdateTemplateOptions { /* private fields */ }Expand description
List of changes to apply to a Template.
Implementations§
Source§impl UpdateTemplateOptions
impl UpdateTemplateOptions
pub fn new(name: impl Into<String>, html: impl Into<String>) -> Self
pub fn with_alias(self, alias: &str) -> Self
pub fn with_from(self, from: &str) -> Self
pub fn with_subject(self, subject: &str) -> Self
pub fn with_reply_to(self, reply_to: &str) -> Self
pub fn with_reply_tos(self, reply_tos: &[String]) -> Self
pub fn with_text(self, text: &str) -> Self
pub fn with_variable(self, variable: Variable) -> Self
pub fn with_variables(self, variables: &[Variable]) -> Self
Trait Implementations§
Source§impl Clone for UpdateTemplateOptions
impl Clone for UpdateTemplateOptions
Source§fn clone(&self) -> UpdateTemplateOptions
fn clone(&self) -> UpdateTemplateOptions
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 UpdateTemplateOptions
impl Debug for UpdateTemplateOptions
Source§impl Default for UpdateTemplateOptions
impl Default for UpdateTemplateOptions
Source§fn default() -> UpdateTemplateOptions
fn default() -> UpdateTemplateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateTemplateOptions
impl RefUnwindSafe for UpdateTemplateOptions
impl Send for UpdateTemplateOptions
impl Sync for UpdateTemplateOptions
impl Unpin for UpdateTemplateOptions
impl UnwindSafe for UpdateTemplateOptions
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