sonarr_api_rs/models/
command_priority.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum CommandPriority {
17 #[serde(rename = "normal")]
18 Normal,
19 #[serde(rename = "high")]
20 High,
21 #[serde(rename = "low")]
22 Low,
23
24}
25
26impl std::fmt::Display for CommandPriority {
27 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28 match self {
29 Self::Normal => write!(f, "normal"),
30 Self::High => write!(f, "high"),
31 Self::Low => write!(f, "low"),
32 }
33 }
34}
35
36impl Default for CommandPriority {
37 fn default() -> CommandPriority {
38 Self::Normal
39 }
40}
41