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>>,
}
Expand description
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§
Source§impl Clone for Personalization
impl Clone for Personalization
Source§fn clone(&self) -> Personalization
fn clone(&self) -> Personalization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Personalization
impl Debug for Personalization
Source§impl Default for Personalization
impl Default for Personalization
Source§fn default() -> Personalization
fn default() -> Personalization
Source§impl<'de> Deserialize<'de> for Personalization
impl<'de> Deserialize<'de> for Personalization
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Personalization
impl RefUnwindSafe for Personalization
impl Send for Personalization
impl Sync for Personalization
impl Unpin for Personalization
impl UnwindSafe for Personalization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request