sonarr_api_rs/models/
download_client_bulk_resource.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DownloadClientBulkResource {
16 #[serde(rename = "ids", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17 pub ids: Option<Option<Vec<i32>>>,
18 #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19 pub tags: Option<Option<Vec<i32>>>,
20 #[serde(rename = "applyTags", skip_serializing_if = "Option::is_none")]
21 pub apply_tags: Option<models::ApplyTags>,
22 #[serde(rename = "enable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23 pub enable: Option<Option<bool>>,
24 #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25 pub priority: Option<Option<i32>>,
26 #[serde(rename = "removeCompletedDownloads", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27 pub remove_completed_downloads: Option<Option<bool>>,
28 #[serde(rename = "removeFailedDownloads", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29 pub remove_failed_downloads: Option<Option<bool>>,
30}
31
32impl DownloadClientBulkResource {
33 pub fn new() -> DownloadClientBulkResource {
34 DownloadClientBulkResource {
35 ids: None,
36 tags: None,
37 apply_tags: None,
38 enable: None,
39 priority: None,
40 remove_completed_downloads: None,
41 remove_failed_downloads: None,
42 }
43 }
44}
45