#[non_exhaustive]pub enum UndoStatus {
Pending,
Final,
Canceled,
Other(String),
}Expand description
Whether an EmailSubmission may still be canceled (RFC 8621 §7).
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.
Pending
The message has not yet been relayed; cancellation may be possible.
Final
The message has been relayed to at least one recipient and cannot be recalled.
Canceled
The submission was canceled and will not be delivered to any recipient.
Other(String)
An unrecognised value was received from the server.
The inner string retains the original value so this variant round-trips correctly.
Trait Implementations§
Source§impl Clone for UndoStatus
impl Clone for UndoStatus
Source§fn clone(&self) -> UndoStatus
fn clone(&self) -> UndoStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UndoStatus
impl Debug for UndoStatus
Source§impl<'de> Deserialize<'de> for UndoStatus
impl<'de> Deserialize<'de> for UndoStatus
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
Source§impl Display for UndoStatus
impl Display for UndoStatus
impl Eq for UndoStatus
Source§impl Hash for UndoStatus
impl Hash for UndoStatus
Source§impl PartialEq for UndoStatus
impl PartialEq for UndoStatus
Source§fn eq(&self, other: &UndoStatus) -> bool
fn eq(&self, other: &UndoStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UndoStatus
impl Serialize for UndoStatus
impl StructuralPartialEq for UndoStatus
Auto Trait Implementations§
impl Freeze for UndoStatus
impl RefUnwindSafe for UndoStatus
impl Send for UndoStatus
impl Sync for UndoStatus
impl Unpin for UndoStatus
impl UnsafeUnpin for UndoStatus
impl UnwindSafe for UndoStatus
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