Struct samotop_core::mail::Transaction
source · [−]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
Returns the “default value” for a type. Read more