sonarr_api_rs/models/
select_option.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 SelectOption {
16    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
17    pub value: 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 = "order", skip_serializing_if = "Option::is_none")]
21    pub order: Option<i32>,
22    #[serde(rename = "hint", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub hint: Option<Option<String>>,
24}
25
26impl SelectOption {
27    pub fn new() -> SelectOption {
28        SelectOption {
29            value: None,
30            name: None,
31            order: None,
32            hint: None,
33        }
34    }
35}
36