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§
Source§impl InternalMessageStatus
impl InternalMessageStatus
pub fn as_message_status(&self) -> MessageStatus
Trait Implementations§
Source§impl Clone for InternalMessageStatus
impl Clone for InternalMessageStatus
Source§fn clone(&self) -> InternalMessageStatus
fn clone(&self) -> InternalMessageStatus
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 InternalMessageStatus
impl Debug for InternalMessageStatus
Source§impl<'de> Deserialize<'de> for InternalMessageStatus
impl<'de> Deserialize<'de> for InternalMessageStatus
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 InternalMessageStatus
impl RefUnwindSafe for InternalMessageStatus
impl Send for InternalMessageStatus
impl Sync for InternalMessageStatus
impl Unpin for InternalMessageStatus
impl UnwindSafe for InternalMessageStatus
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