(raw: &str)
| 21 | |
| 22 | impl RedactionLevel { |
| 23 | fn parse(raw: &str) -> Self { |
| 24 | match raw.trim().to_lowercase().as_str() { |
| 25 | "debug" => Self::Debug, |
| 26 | "balanced" => Self::Balanced, |
| 27 | _ => Self::Strict, |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | #[derive(Debug, Clone, Serialize, Deserialize)] |
no outgoing calls
no test coverage detected