pub struct Transaction {
pub id: String,
pub mail: Option<SmtpMail>,
pub rcpts: Vec<Recipient>,
pub extra_headers: String,
pub sink: Option<Pin<Box<dyn MailDataSink>>>,
}
Expand description
Mail envelope before sending mail data
Fields§
§id: String
unique mail transaction identifier
mail: Option<SmtpMail>
The SMTP mail from:path sent by peer
rcpts: Vec<Recipient>
A list of SMTP rcpt to:path sent by peer
extra_headers: String
Extra headers prepended to the e-mail
sink: Option<Pin<Box<dyn MailDataSink>>>
Write sink to write the mail into
Implementations§
Trait Implementations§
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl Default for Transaction
impl Default for Transaction
Source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Transaction
impl !RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
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