sonarr_api_rs/models/
indexer_bulk_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 IndexerBulkResource {
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 = "enableRss", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub enable_rss: Option<Option<bool>>,
24    #[serde(rename = "enableAutomaticSearch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub enable_automatic_search: Option<Option<bool>>,
26    #[serde(rename = "enableInteractiveSearch", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub enable_interactive_search: Option<Option<bool>>,
28    #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub priority: Option<Option<i32>>,
30}
31
32impl IndexerBulkResource {
33    pub fn new() -> IndexerBulkResource {
34        IndexerBulkResource {
35            ids: None,
36            tags: None,
37            apply_tags: None,
38            enable_rss: None,
39            enable_automatic_search: None,
40            enable_interactive_search: None,
41            priority: None,
42        }
43    }
44}
45