prowlarr/models/
tag_resource.rs

1/*
2 * Prowlarr
3 *
4 * Prowlarr API docs
5 *
6 * The version of the OpenAPI document: v2.0.5.5160
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 TagResource {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub label: Option<Option<String>>,
20}
21
22impl TagResource {
23    pub fn new() -> TagResource {
24        TagResource {
25            id: None,
26            label: None,
27        }
28    }
29}
30