pub struct EmailMessage {
pub id: String,
pub status: EmailStatus,
pub provider_message_id: Option<String>,
pub idempotency_key: Option<String>,
pub from_email: String,
pub to_emails: Vec<String>,
pub subject: Option<String>,
pub sent_at: Option<String>,
pub created_at: Option<String>,
pub events: Vec<EmailEvent>,
}Expand description
A transactional email as returned by the API: the send result and, when fetched by id, its delivery status and event timeline.
Fields§
§id: String§status: EmailStatus§provider_message_id: Option<String>§idempotency_key: Option<String>§from_email: String§to_emails: Vec<String>§subject: Option<String>§sent_at: Option<String>§created_at: Option<String>§events: Vec<EmailEvent>Populated by get_message; empty for the bare send response.
Trait Implementations§
Source§impl Clone for EmailMessage
impl Clone for EmailMessage
Source§impl Debug for EmailMessage
impl Debug for EmailMessage
Source§impl<'de> Deserialize<'de> for EmailMessage
impl<'de> Deserialize<'de> for EmailMessage
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
Auto Trait Implementations§
impl Freeze for EmailMessage
impl RefUnwindSafe for EmailMessage
impl Send for EmailMessage
impl Sync for EmailMessage
impl Unpin for EmailMessage
impl UnsafeUnpin for EmailMessage
impl UnwindSafe for EmailMessage
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