pub enum EmailPriority {
Low = 0,
Normal = 1,
High = 2,
Critical = 3,
}Expand description
Email priority levels
Variants§
Low = 0
Low priority (newsletters, bulk emails)
Normal = 1
Normal priority (user notifications)
High = 2
High priority (password resets, confirmations)
Critical = 3
Critical priority (security alerts, system notifications)
Trait Implementations§
Source§impl Clone for EmailPriority
impl Clone for EmailPriority
Source§fn clone(&self) -> EmailPriority
fn clone(&self) -> EmailPriority
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 EmailPriority
impl Debug for EmailPriority
Source§impl Default for EmailPriority
impl Default for EmailPriority
Source§impl<'de> Deserialize<'de> for EmailPriority
impl<'de> Deserialize<'de> for EmailPriority
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
Source§impl From<EmailPriority> for Priority
impl From<EmailPriority> for Priority
Source§fn from(email_priority: EmailPriority) -> Self
fn from(email_priority: EmailPriority) -> Self
Converts to this type from the input type.
Source§impl From<Priority> for EmailPriority
impl From<Priority> for EmailPriority
Source§impl Ord for EmailPriority
impl Ord for EmailPriority
Source§fn cmp(&self, other: &EmailPriority) -> Ordering
fn cmp(&self, other: &EmailPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EmailPriority
impl PartialEq for EmailPriority
Source§impl PartialOrd for EmailPriority
impl PartialOrd for EmailPriority
Source§impl Serialize for EmailPriority
impl Serialize for EmailPriority
impl Copy for EmailPriority
impl Eq for EmailPriority
impl StructuralPartialEq for EmailPriority
Auto Trait Implementations§
impl Freeze for EmailPriority
impl RefUnwindSafe for EmailPriority
impl Send for EmailPriority
impl Sync for EmailPriority
impl Unpin for EmailPriority
impl UnwindSafe for EmailPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.