sonarr/models/
import_list_type.rs

1/*
2 * Sonarr
3 *
4 * Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application.
5 *
6 * The version of the OpenAPI document: v4.0.15.2941
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ImportListType {
17    #[serde(rename = "program")]
18    Program,
19    #[serde(rename = "plex")]
20    Plex,
21    #[serde(rename = "trakt")]
22    Trakt,
23    #[serde(rename = "simkl")]
24    Simkl,
25    #[serde(rename = "other")]
26    Other,
27    #[serde(rename = "advanced")]
28    Advanced,
29
30}
31
32impl std::fmt::Display for ImportListType {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Program => write!(f, "program"),
36            Self::Plex => write!(f, "plex"),
37            Self::Trakt => write!(f, "trakt"),
38            Self::Simkl => write!(f, "simkl"),
39            Self::Other => write!(f, "other"),
40            Self::Advanced => write!(f, "advanced"),
41        }
42    }
43}
44
45impl Default for ImportListType {
46    fn default() -> ImportListType {
47        Self::Program
48    }
49}
50