radarr_api_rs/models/
health_check_result.rs

1/*
2 * Radarr
3 *
4 * Radarr API docs
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12/// 
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum HealthCheckResult {
15    #[serde(rename = "ok")]
16    Ok,
17    #[serde(rename = "notice")]
18    Notice,
19    #[serde(rename = "warning")]
20    Warning,
21    #[serde(rename = "error")]
22    Error,
23
24}
25
26impl ToString for HealthCheckResult {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Ok => String::from("ok"),
30            Self::Notice => String::from("notice"),
31            Self::Warning => String::from("warning"),
32            Self::Error => String::from("error"),
33        }
34    }
35}
36
37impl Default for HealthCheckResult {
38    fn default() -> HealthCheckResult {
39        Self::Ok
40    }
41}
42
43
44
45