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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.