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