radarr_api_rs/models/
command_priority.rs1#[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