#[non_exhaustive]pub enum Delivered {
Queued,
Yes,
No,
Unknown,
Other(String),
}Expand description
Delivery status of a message to a recipient (RFC 8621 §7, delivered field).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Queued
The message is in a local mail queue and the status is not yet known.
Yes
The message was successfully delivered to the mail store of the recipient.
No
Delivery failed; the smtp_reply field contains the failure reason.
Unknown
The final delivery status is unknown.
Other(String)
An unrecognised value was received from the server.
The inner string retains the original value so this variant round-trips correctly.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Delivered
impl<'de> Deserialize<'de> for Delivered
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Delivered
impl StructuralPartialEq for Delivered
Auto Trait Implementations§
impl Freeze for Delivered
impl RefUnwindSafe for Delivered
impl Send for Delivered
impl Sync for Delivered
impl Unpin for Delivered
impl UnsafeUnpin for Delivered
impl UnwindSafe for Delivered
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