Struct sendgrid_api::Message [−][src]
pub struct Message { /* fields omitted */ }
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
impl Message
[src]
impl Message
[src]pub fn set_subject(self, subject: &str) -> Message
[src]
pub fn set_subject(self, subject: &str) -> Message
[src]Set the subject.
pub fn set_template_id(self, template_id: &str) -> Message
[src]
pub fn set_template_id(self, template_id: &str) -> Message
[src]Set the template id.
pub fn add_content(self, c: Content) -> Message
[src]
pub fn add_content(self, c: Content) -> Message
[src]Add content to the message.
pub fn add_personalization(self, p: Personalization) -> Message
[src]
pub fn add_personalization(self, p: Personalization) -> Message
[src]Add a personalization to the message.
pub fn add_attachment(self, a: Attachment) -> Message
[src]
pub fn add_attachment(self, a: Attachment) -> Message
[src]Add an attachment to the message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]