sonarr_api_rs/models/
blocklist_resource.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BlocklistResource {
16 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17 pub id: Option<i32>,
18 #[serde(rename = "seriesId", skip_serializing_if = "Option::is_none")]
19 pub series_id: Option<i32>,
20 #[serde(rename = "episodeIds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21 pub episode_ids: Option<Option<Vec<i32>>>,
22 #[serde(rename = "sourceTitle", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23 pub source_title: Option<Option<String>>,
24 #[serde(rename = "languages", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25 pub languages: Option<Option<Vec<models::Language>>>,
26 #[serde(rename = "quality", skip_serializing_if = "Option::is_none")]
27 pub quality: Option<Box<models::QualityModel>>,
28 #[serde(rename = "customFormats", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29 pub custom_formats: Option<Option<Vec<models::CustomFormatResource>>>,
30 #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
31 pub date: Option<String>,
32 #[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
33 pub protocol: Option<models::DownloadProtocol>,
34 #[serde(rename = "indexer", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
35 pub indexer: Option<Option<String>>,
36 #[serde(rename = "message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
37 pub message: Option<Option<String>>,
38 #[serde(rename = "series", skip_serializing_if = "Option::is_none")]
39 pub series: Option<Box<models::SeriesResource>>,
40}
41
42impl BlocklistResource {
43 pub fn new() -> BlocklistResource {
44 BlocklistResource {
45 id: None,
46 series_id: None,
47 episode_ids: None,
48 source_title: None,
49 languages: None,
50 quality: None,
51 custom_formats: None,
52 date: None,
53 protocol: None,
54 indexer: None,
55 message: None,
56 series: None,
57 }
58 }
59}
60