libutils_issue/severity.rs
1//^
2//^ SEVERITY
3//^
4
5//> SEVERITY -> ENUM
6#[derive(Hash)]
7pub enum Severity {
8 Warning,
9 Error,
10 Critical
11} const impl Into<&'static str> for &Severity {
12 fn into(self) -> &'static str {return match self {
13 Severity::Critical => "critical",
14 Severity::Error => "error",
15 Severity::Warning => "warning"
16 }}
17}