pub struct EmailPayload {
pub sender: String,
pub sender_name: Option<String>,
pub recipient: String,
pub subject: String,
pub body: String,
pub html_body: Option<String>,
pub headers: Option<HashMap<String, String>>,
}Expand description
Represents the data payload sent to the webhook URL.
Contains the essential extracted information from a received email.
Fields§
§sender: StringThe email address of the original sender (from MAIL FROM).
sender_name: Option<String>The display name extracted from the ‘Reply-To’ header, if available.
recipient: StringThe specific recipient address this email was accepted for (from RCPT TO).
subject: StringThe subject line of the email.
body: StringThe plain text representation of the body (HTML stripped or converted).
html_body: Option<String>The original HTML body content, if the email contained HTML.
headers: Option<HashMap<String, String>>Email headers matching configured prefix filters, if any were matched.
Trait Implementations§
Source§impl Clone for EmailPayload
impl Clone for EmailPayload
Source§fn clone(&self) -> EmailPayload
fn clone(&self) -> EmailPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 EmailPayload
impl Debug for EmailPayload
Source§impl<'de> Deserialize<'de> for EmailPayload
impl<'de> Deserialize<'de> for EmailPayload
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 EmailPayload
impl RefUnwindSafe for EmailPayload
impl Send for EmailPayload
impl Sync for EmailPayload
impl Unpin for EmailPayload
impl UnwindSafe for EmailPayload
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