sonarr_api_rs/models/
monitoring_options.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 MonitoringOptions {
16    #[serde(rename = "ignoreEpisodesWithFiles", skip_serializing_if = "Option::is_none")]
17    pub ignore_episodes_with_files: Option<bool>,
18    #[serde(rename = "ignoreEpisodesWithoutFiles", skip_serializing_if = "Option::is_none")]
19    pub ignore_episodes_without_files: Option<bool>,
20    #[serde(rename = "monitor", skip_serializing_if = "Option::is_none")]
21    pub monitor: Option<models::MonitorTypes>,
22}
23
24impl MonitoringOptions {
25    pub fn new() -> MonitoringOptions {
26        MonitoringOptions {
27            ignore_episodes_with_files: None,
28            ignore_episodes_without_files: None,
29            monitor: None,
30        }
31    }
32}
33