pub enum MessagePriority {
Low,
Normal,
High,
Critical,
}Expand description
Priority level for messages.
Variants§
Low
Low priority - can be delayed
Normal
Normal priority
High
High priority - should be processed soon
Critical
Critical - must be processed immediately
Implementations§
Source§impl MessagePriority
impl MessagePriority
Sourcepub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
pub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
Parse from database string representation.
Trait Implementations§
Source§impl Clone for MessagePriority
impl Clone for MessagePriority
Source§fn clone(&self) -> MessagePriority
fn clone(&self) -> MessagePriority
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 ComposeSchema for MessagePriority
impl ComposeSchema for MessagePriority
Source§impl Debug for MessagePriority
impl Debug for MessagePriority
Source§impl Default for MessagePriority
impl Default for MessagePriority
Source§fn default() -> MessagePriority
fn default() -> MessagePriority
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessagePriority
impl<'de> Deserialize<'de> for MessagePriority
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 Display for MessagePriority
impl Display for MessagePriority
Source§impl FromStr for MessagePriority
impl FromStr for MessagePriority
Source§impl Hash for MessagePriority
impl Hash for MessagePriority
Source§impl PartialEq for MessagePriority
impl PartialEq for MessagePriority
Source§impl Serialize for MessagePriority
impl Serialize for MessagePriority
Source§impl ToSchema for MessagePriority
impl ToSchema for MessagePriority
impl Copy for MessagePriority
impl Eq for MessagePriority
impl StructuralPartialEq for MessagePriority
Auto Trait Implementations§
impl Freeze for MessagePriority
impl RefUnwindSafe for MessagePriority
impl Send for MessagePriority
impl Sync for MessagePriority
impl Unpin for MessagePriority
impl UnwindSafe for MessagePriority
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.