pub struct SentEmail {
pub id: String,
pub region: String,
pub timestamp: String,
pub source: String,
pub destination: SentEmailDestination,
pub subject: Option<String>,
pub body: Option<SentEmailBody>,
pub raw_data: Option<String>,
pub template: Option<String>,
pub template_data: Option<String>,
pub tags: Vec<SentEmailTag>,
}Expand description
A single captured email, stored for retrospection.
Fields§
§id: StringUnique message ID (UUID).
region: StringAWS region where the email was sent.
timestamp: StringISO 8601 timestamp of when the email was captured.
source: StringSource (From) email address.
destination: SentEmailDestinationDestination addresses.
subject: Option<String>Email subject line (for SendEmail, SendTemplatedEmail after rendering).
body: Option<SentEmailBody>Email body.
raw_data: Option<String>Raw MIME data (for SendRawEmail).
template: Option<String>Template name (for SendTemplatedEmail).
template_data: Option<String>Template data JSON string (for SendTemplatedEmail).
Message tags from the send request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SentEmail
impl<'de> Deserialize<'de> for SentEmail
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 SentEmail
impl RefUnwindSafe for SentEmail
impl Send for SentEmail
impl Sync for SentEmail
impl Unpin for SentEmail
impl UnsafeUnpin for SentEmail
impl UnwindSafe for SentEmail
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