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