Enum axum_messages::Level
source ยท pub enum Level {
Debug = 0,
Info = 1,
Success = 2,
Warning = 3,
Error = 4,
}Expand description
Enumeration of message levels.
This folllows directly from the Django implementation.
Variantsยง
Debug = 0
Development-related messages that will be ignored (or removed) in a production deployment.
Info = 1
Informational messages for the user.
Success = 2
An action was successful, e.g. โYour profile was updated successfullyโ.
Warning = 3
A failure did not occur but may be imminent.
Error = 4
An action was not successful or some other failure occurred.
Trait Implementationsยง
sourceยงimpl<'de> Deserialize<'de> for Level
impl<'de> Deserialize<'de> for Level
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 Ord for Level
impl Ord for Level
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 Level
impl PartialEq for Level
sourceยงimpl PartialOrd for Level
impl PartialOrd for Level
1.0.0 ยท sourceยงfn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Level
impl Eq for Level
impl StructuralEq for Level
impl StructuralPartialEq for Level
Auto Trait Implementationsยง
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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