pub struct Message { /* private fields */ }
Expand description
The main structure for a V3 API mail send call. This is composed of many other smaller structures used to add lots of customization to your message.
Implementations§
source§impl Message
impl Message
sourcepub fn set_reply_to(self, reply_to: Email) -> Message
pub fn set_reply_to(self, reply_to: Email) -> Message
Set the Reply-To header.
sourcepub fn set_subject(self, subject: &str) -> Message
pub fn set_subject(self, subject: &str) -> Message
Set the subject.
sourcepub fn set_template_id(self, template_id: &str) -> Message
pub fn set_template_id(self, template_id: &str) -> Message
Set the template id.
sourcepub fn set_ip_pool_name(self, ip_pool_name: &str) -> Message
pub fn set_ip_pool_name(self, ip_pool_name: &str) -> Message
Set the IP pool name.
sourcepub fn set_tracking_settings(
self,
tracking_settings: TrackingSettings
) -> Message
pub fn set_tracking_settings( self, tracking_settings: TrackingSettings ) -> Message
Set tracking settings.
sourcepub fn add_category(self, category: &str) -> Message
pub fn add_category(self, category: &str) -> Message
Add a category.
sourcepub fn add_categories(self, categories: &[String]) -> Message
pub fn add_categories(self, categories: &[String]) -> Message
Add multiple categories.
sourcepub fn add_content(self, c: Content) -> Message
pub fn add_content(self, c: Content) -> Message
Add content to the message.
sourcepub fn add_personalization(self, p: Personalization) -> Message
pub fn add_personalization(self, p: Personalization) -> Message
Add a personalization to the message.
sourcepub fn add_attachment(self, a: Attachment) -> Message
pub fn add_attachment(self, a: Attachment) -> Message
Add an attachment to the message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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