pub struct EmailPreview {
pub html: String,
pub subject: Option<String>,
pub extra: Map<String, Value>,
}Expand description
Flat rendering result; no data wrapper. The subject property is present only when the request included subject.
Fields§
§html: StringRendered email preview HTML
subject: Option<String>Rendered subject, only present when a subject was provided
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for EmailPreview
impl Clone for EmailPreview
Source§impl Debug for EmailPreview
impl Debug for EmailPreview
Source§impl Default for EmailPreview
impl Default for EmailPreview
Source§impl<'de> Deserialize<'de> for EmailPreview
impl<'de> Deserialize<'de> for EmailPreview
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 EmailPreview
impl PartialEq for EmailPreview
Source§impl Serialize for EmailPreview
impl Serialize for EmailPreview
impl StructuralPartialEq for EmailPreview
Auto Trait Implementations§
impl Freeze for EmailPreview
impl RefUnwindSafe for EmailPreview
impl Send for EmailPreview
impl Sync for EmailPreview
impl Unpin for EmailPreview
impl UnsafeUnpin for EmailPreview
impl UnwindSafe for EmailPreview
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