pub struct EmailTemplate {
pub name: String,
pub subject: String,
pub body_html: String,
pub body_plaintext: String,
pub description: Option<String>,
pub preheader: Option<String>,
pub should_inline_css: Option<bool>,
pub tags: Vec<String>,
}Fields§
§name: String§subject: String§body_html: StringHTML body (may contain Liquid; treated as opaque text in v1.0).
body_plaintext: StringPlaintext fallback. Empty string allowed; field always present.
description: Option<String>Returned by Braze /info but not settable via create/update.
Excluded from syncable_eq (same pattern as ContentBlock state).
preheader: Option<String>§should_inline_css: Option<bool>CSS inline processing toggle. Supported by create/update/info.
Trait Implementations§
Source§impl Clone for EmailTemplate
impl Clone for EmailTemplate
Source§fn clone(&self) -> EmailTemplate
fn clone(&self) -> EmailTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailTemplate
impl Debug for EmailTemplate
Source§impl<'de> Deserialize<'de> for EmailTemplate
impl<'de> Deserialize<'de> for EmailTemplate
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EmailTemplate
impl PartialEq for EmailTemplate
Source§fn eq(&self, other: &EmailTemplate) -> bool
fn eq(&self, other: &EmailTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmailTemplate
impl Serialize for EmailTemplate
impl StructuralPartialEq for EmailTemplate
Auto Trait Implementations§
impl Freeze for EmailTemplate
impl RefUnwindSafe for EmailTemplate
impl Send for EmailTemplate
impl Sync for EmailTemplate
impl Unpin for EmailTemplate
impl UnsafeUnpin for EmailTemplate
impl UnwindSafe for EmailTemplate
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
Mutably borrows from an owned value. Read more