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
Source§impl PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
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