1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * Mirakurun
 *
 * DVR Tuner Server for Japanese TV.
 *
 * The version of the OpenAPI document: 3.9.0-rc.2
 * 
 * Generated by: https://openapi-generator.tech
 */


/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProgramVideoResolution {
    #[serde(rename = "240p")]
    _240p,
    #[serde(rename = "480i")]
    _480i,
    #[serde(rename = "480p")]
    _480p,
    #[serde(rename = "720p")]
    _720p,
    #[serde(rename = "1080i")]
    _1080i,
    #[serde(rename = "1080p")]
    _1080p,
    #[serde(rename = "2160p")]
    _2160p,
    #[serde(rename = "4320p")]
    _4320p,

}

impl ToString for ProgramVideoResolution {
    fn to_string(&self) -> String {
        match self {
            Self::_240p => String::from("240p"),
            Self::_480i => String::from("480i"),
            Self::_480p => String::from("480p"),
            Self::_720p => String::from("720p"),
            Self::_1080i => String::from("1080i"),
            Self::_1080p => String::from("1080p"),
            Self::_2160p => String::from("2160p"),
            Self::_4320p => String::from("4320p"),
        }
    }
}

impl Default for ProgramVideoResolution {
    fn default() -> ProgramVideoResolution {
        Self::_240p
    }
}