sonarr_api_rs/models/
season_statistics_resource.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SeasonStatisticsResource {
16 #[serde(rename = "nextAiring", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17 pub next_airing: Option<Option<String>>,
18 #[serde(rename = "previousAiring", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19 pub previous_airing: Option<Option<String>>,
20 #[serde(rename = "episodeFileCount", skip_serializing_if = "Option::is_none")]
21 pub episode_file_count: Option<i32>,
22 #[serde(rename = "episodeCount", skip_serializing_if = "Option::is_none")]
23 pub episode_count: Option<i32>,
24 #[serde(rename = "totalEpisodeCount", skip_serializing_if = "Option::is_none")]
25 pub total_episode_count: Option<i32>,
26 #[serde(rename = "sizeOnDisk", skip_serializing_if = "Option::is_none")]
27 pub size_on_disk: Option<i64>,
28 #[serde(rename = "releaseGroups", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29 pub release_groups: Option<Option<Vec<String>>>,
30 #[serde(rename = "percentOfEpisodes", skip_serializing_if = "Option::is_none")]
31 pub percent_of_episodes: Option<f64>,
32}
33
34impl SeasonStatisticsResource {
35 pub fn new() -> SeasonStatisticsResource {
36 SeasonStatisticsResource {
37 next_airing: None,
38 previous_airing: None,
39 episode_file_count: None,
40 episode_count: None,
41 total_episode_count: None,
42 size_on_disk: None,
43 release_groups: None,
44 percent_of_episodes: None,
45 }
46 }
47}
48