sonarr_api_rs/models/
episode_file_list_resource.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: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct EpisodeFileListResource {
16    #[serde(rename = "episodeFileIds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub episode_file_ids: Option<Option<Vec<i32>>>,
18    #[serde(rename = "languages", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub languages: Option<Option<Vec<models::Language>>>,
20    #[serde(rename = "quality", skip_serializing_if = "Option::is_none")]
21    pub quality: Option<Box<models::QualityModel>>,
22    #[serde(rename = "sceneName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub scene_name: Option<Option<String>>,
24    #[serde(rename = "releaseGroup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub release_group: Option<Option<String>>,
26}
27
28impl EpisodeFileListResource {
29    pub fn new() -> EpisodeFileListResource {
30        EpisodeFileListResource {
31            episode_file_ids: None,
32            languages: None,
33            quality: None,
34            scene_name: None,
35            release_group: None,
36        }
37    }
38}
39