[][src]Struct azure_functions::send_grid::Personalization

pub struct Personalization {
    pub to: Vec<EmailAddress>,
    pub cc: Vec<EmailAddress>,
    pub bcc: Vec<EmailAddress>,
    pub subject: Option<String>,
    pub headers: HashMap<String, String>,
    pub substitutions: HashMap<String, String>,
    pub custom_args: HashMap<String, String>,
    pub send_at: Option<i64>,
    pub template_data: Option<Map<String, Value>>,
}

Represents a personalization of an email message.

Defines who should receive an individual message and how that message should be handled.

Fields in personalizations will override the fields of the same name from the message level.

Fields

to: Vec<EmailAddress>

The list of email recipients.

cc: Vec<EmailAddress>

The list of recipients who will receive a carbon copy of the email.

bcc: Vec<EmailAddress>

The list of recipients who will receive a blind carbon copy of the email.

subject: Option<String>

The subject line of the email.

headers: HashMap<String, String>

The email message headers.

substitutions: HashMap<String, String>

The map of substitution tags to substitution values. Substitutions will apply to the content of the email, in addition to the subject and reply-to parameters.

custom_args: HashMap<String, String>

The map of custom argument to value. Custom arguments will be carried along with the email, activity data, and links.

send_at: Option<i64>

The unix timestamp specifying when the email should be sent from Twilio SendGrid.

template_data: Option<Map<String, Value>>

The template data to use for Handlebars based templates.

Trait Implementations

impl Clone for Personalization[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Personalization[src]

impl Debug for Personalization[src]

impl Serialize for Personalization[src]

impl<'de> Deserialize<'de> for Personalization[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T