radarr_api_rs/models/
command_priority.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 CommandPriority {
15    #[serde(rename = "normal")]
16    Normal,
17    #[serde(rename = "high")]
18    High,
19    #[serde(rename = "low")]
20    Low,
21
22}
23
24impl ToString for CommandPriority {
25    fn to_string(&self) -> String {
26        match self {
27            Self::Normal => String::from("normal"),
28            Self::High => String::from("high"),
29            Self::Low => String::from("low"),
30        }
31    }
32}
33
34impl Default for CommandPriority {
35    fn default() -> CommandPriority {
36        Self::Normal
37    }
38}
39
40
41
42