Struct sendgrid_api::Personalization [−][src]
pub struct Personalization { /* fields omitted */ }A personalization block for a V3 message. It has to at least contain one email as a to address. All other fields are optional.
Implementations
impl Personalization[src]
impl Personalization[src]pub fn new() -> Personalization[src]
pub fn new() -> Personalization[src]Construct a new personalization block for this message.
pub fn add_to(self, to: Email) -> Personalization[src]
pub fn add_to(self, to: Email) -> Personalization[src]Add a to field.
pub fn add_cc(self, cc: Email) -> Personalization[src]
pub fn add_cc(self, cc: Email) -> Personalization[src]Add a CC field.
pub fn add_bcc(self, bcc: Email) -> Personalization[src]
pub fn add_bcc(self, bcc: Email) -> Personalization[src]Add a BCC field.
pub fn add_headers(self, headers: HashMap<String, String>) -> Personalization[src]
pub fn add_headers(self, headers: HashMap<String, String>) -> Personalization[src]Add a headers field.
pub fn add_dynamic_template_data(
self,
dynamic_template_data: HashMap<String, String>
) -> Personalization[src]
pub fn add_dynamic_template_data(
self,
dynamic_template_data: HashMap<String, String>
) -> Personalization[src]Add a dynamic template data field.
Trait Implementations
impl Default for Personalization[src]
impl Default for Personalization[src]fn default() -> Personalization[src]
fn default() -> Personalization[src]Returns the “default value” for a type. Read more
impl Serialize for Personalization[src]
impl Serialize for Personalization[src]Auto Trait Implementations
impl RefUnwindSafe for Personalization
impl Send for Personalization
impl Sync for Personalization
impl Unpin for Personalization
impl UnwindSafe for Personalization
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]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]