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