pub struct InternalMessageStatus {
    pub message_id: String,
    pub recipients: Vec<InternalRecipientStatus>,
    pub attempts_remaining: u8,
}
Expand description

An email to be sent (internal format). This is exposed publicly for implementers of MailstromStorage but otherwise should not be needed by users of this library.

Fields

message_id: String

The parsed-out (or generated) message ID

recipients: Vec<InternalRecipientStatus>

The parsed-out list of recipients, and the state each is in. If this is None, then the recipient information has not been determined yet (MX record lookups take some time).

attempts_remaining: u8

Attempts remaining. This counts backwards to zero. If all deliveries are complete (permanent success or failure), it is set to zero.

Per-recipient deferred attempt numbers count upwards, and may get more attempts because a single worker pass may try a recipient on muliple MX servers.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

The type returned in the event of a conversion error.

Performs the conversion.