#[non_exhaustive]pub struct EmailMessageUpdate {Show 14 fields
pub subject: Option<String>,
pub preview_text: Option<String>,
pub from_name: Option<String>,
pub from_email: Option<String>,
pub reply_to_email: Option<String>,
pub lmx: Option<String>,
pub expected_revision_id: Option<String>,
pub cc_email: Option<String>,
pub bcc_email: Option<String>,
pub language_code: Option<String>,
pub email_format: Option<EmailFormat>,
pub contact_properties_fallbacks: Option<BTreeMap<String, Option<String>>>,
pub event_properties_fallbacks: Option<BTreeMap<String, Option<String>>>,
pub data_variables_fallbacks: Option<BTreeMap<String, Option<String>>>,
}Expand description
Changes for update_email_message. Unset fields are left unchanged.
The three fallback maps merge per key on the server: Some(value) sets a
fallback, None deletes it, and keys left out are unchanged.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subject: Option<String>Subject line.
preview_text: Option<String>Preview text shown in the inbox.
from_name: Option<String>Sender display name.
from_email: Option<String>Sender username, without @ or domain; the team domain is appended.
reply_to_email: Option<String>Reply-to address (empty or a valid email).
lmx: Option<String>Body as LMX, with styles in a <Style /> tag.
expected_revision_id: Option<String>Optimistic concurrency token; a stale value fails with 409.
cc_email: Option<String>CC address. Needs CC/BCC enabled for the team; not for campaign emails. Checked against safe mode.
bcc_email: Option<String>BCC address. Same requirements as cc_email.
language_code: Option<String>ISO 639-1 language code, e.g. "en".
email_format: Option<EmailFormat>Rendering format.
contact_properties_fallbacks: Option<BTreeMap<String, Option<String>>>Fallbacks keyed by contact property name.
event_properties_fallbacks: Option<BTreeMap<String, Option<String>>>Fallbacks keyed by event property name.
data_variables_fallbacks: Option<BTreeMap<String, Option<String>>>Fallbacks keyed by data variable name.
Implementations§
Source§impl EmailMessageUpdate
impl EmailMessageUpdate
Sourcepub fn preview_text(self, value: impl Into<String>) -> Self
pub fn preview_text(self, value: impl Into<String>) -> Self
Set the preview text.
Sourcepub fn from_email(self, value: impl Into<String>) -> Self
pub fn from_email(self, value: impl Into<String>) -> Self
Set the sender username.
Sourcepub fn reply_to_email(self, value: impl Into<String>) -> Self
pub fn reply_to_email(self, value: impl Into<String>) -> Self
Set the reply-to address.
Sourcepub fn expected_revision_id(self, value: impl Into<String>) -> Self
pub fn expected_revision_id(self, value: impl Into<String>) -> Self
Set the expected revision.
Sourcepub fn language_code(self, value: impl Into<String>) -> Self
pub fn language_code(self, value: impl Into<String>) -> Self
Set the language code.
Sourcepub fn email_format(self, value: EmailFormat) -> Self
pub fn email_format(self, value: EmailFormat) -> Self
Set the rendering format.
Sourcepub fn contact_property_fallback(
self,
key: impl Into<String>,
value: Option<&str>,
) -> Self
pub fn contact_property_fallback( self, key: impl Into<String>, value: Option<&str>, ) -> Self
Set (Some) or delete (None) a contact property fallback.
Trait Implementations§
Source§impl Clone for EmailMessageUpdate
impl Clone for EmailMessageUpdate
Source§impl Debug for EmailMessageUpdate
impl Debug for EmailMessageUpdate
Source§impl Default for EmailMessageUpdate
impl Default for EmailMessageUpdate
impl Eq for EmailMessageUpdate
Source§impl PartialEq for EmailMessageUpdate
impl PartialEq for EmailMessageUpdate
impl StructuralPartialEq for EmailMessageUpdate
Auto Trait Implementations§
impl Freeze for EmailMessageUpdate
impl RefUnwindSafe for EmailMessageUpdate
impl Send for EmailMessageUpdate
impl Sync for EmailMessageUpdate
impl Unpin for EmailMessageUpdate
impl UnsafeUnpin for EmailMessageUpdate
impl UnwindSafe for EmailMessageUpdate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.