1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * Radarr
 *
 * Radarr API docs
 *
 * The version of the OpenAPI document: 3.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Field {
    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
    pub order: Option<i32>,
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub label: Option<Option<String>>,
    #[serde(rename = "unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub unit: Option<Option<String>>,
    #[serde(rename = "helpText", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub help_text: Option<Option<String>>,
    #[serde(rename = "helpTextWarning", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub help_text_warning: Option<Option<String>>,
    #[serde(rename = "helpLink", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub help_link: Option<Option<String>>,
    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub value: Option<Option<serde_json::Value>>,
    #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Option<String>>,
    #[serde(rename = "advanced", skip_serializing_if = "Option::is_none")]
    pub advanced: Option<bool>,
    #[serde(rename = "selectOptions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub select_options: Option<Option<Vec<crate::models::SelectOption>>>,
    #[serde(rename = "selectOptionsProviderAction", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub select_options_provider_action: Option<Option<String>>,
    #[serde(rename = "section", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub section: Option<Option<String>>,
    #[serde(rename = "hidden", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub hidden: Option<Option<String>>,
    #[serde(rename = "privacy", skip_serializing_if = "Option::is_none")]
    pub privacy: Option<crate::models::PrivacyLevel>,
    #[serde(rename = "placeholder", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub placeholder: Option<Option<String>>,
    #[serde(rename = "isFloat", skip_serializing_if = "Option::is_none")]
    pub is_float: Option<bool>,
}

impl Field {
    pub fn new() -> Field {
        Field {
            order: None,
            name: None,
            label: None,
            unit: None,
            help_text: None,
            help_text_warning: None,
            help_link: None,
            value: None,
            r#type: None,
            advanced: None,
            select_options: None,
            select_options_provider_action: None,
            section: None,
            hidden: None,
            privacy: None,
            placeholder: None,
            is_float: None,
        }
    }
}