Struct mailstrom::storage::InternalMessageStatus
source · [−]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
sourceimpl InternalMessageStatus
impl InternalMessageStatus
pub fn as_message_status(&self) -> MessageStatus
Trait Implementations
sourceimpl Clone for InternalMessageStatus
impl Clone for InternalMessageStatus
sourcefn clone(&self) -> InternalMessageStatus
fn clone(&self) -> InternalMessageStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InternalMessageStatus
impl Debug for InternalMessageStatus
sourceimpl<'de> Deserialize<'de> for InternalMessageStatus
impl<'de> Deserialize<'de> for InternalMessageStatus
sourcefn 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
sourceimpl Serialize for InternalMessageStatus
impl Serialize for InternalMessageStatus
Auto Trait Implementations
impl RefUnwindSafe for InternalMessageStatus
impl Send for InternalMessageStatus
impl Sync for InternalMessageStatus
impl Unpin for InternalMessageStatus
impl UnwindSafe for InternalMessageStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more