sonarr_api_rs/models/
custom_format_specification_schema.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 CustomFormatSpecificationSchema {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub name: Option<Option<String>>,
20    #[serde(rename = "implementation", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub implementation: Option<Option<String>>,
22    #[serde(rename = "implementationName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub implementation_name: Option<Option<String>>,
24    #[serde(rename = "infoLink", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub info_link: Option<Option<String>>,
26    #[serde(rename = "negate", skip_serializing_if = "Option::is_none")]
27    pub negate: Option<bool>,
28    #[serde(rename = "required", skip_serializing_if = "Option::is_none")]
29    pub required: Option<bool>,
30    #[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
31    pub fields: Option<Option<Vec<models::Field>>>,
32    #[serde(rename = "presets", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
33    pub presets: Option<Option<Vec<models::CustomFormatSpecificationSchema>>>,
34}
35
36impl CustomFormatSpecificationSchema {
37    pub fn new() -> CustomFormatSpecificationSchema {
38        CustomFormatSpecificationSchema {
39            id: None,
40            name: None,
41            implementation: None,
42            implementation_name: None,
43            info_link: None,
44            negate: None,
45            required: None,
46            fields: None,
47            presets: None,
48        }
49    }
50}
51