sonarr_api_rs/models/
http_uri.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 HttpUri {
16    #[serde(rename = "fullUri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub full_uri: Option<Option<String>>,
18    #[serde(rename = "scheme", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub scheme: Option<Option<String>>,
20    #[serde(rename = "host", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub host: Option<Option<String>>,
22    #[serde(rename = "port", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub port: Option<Option<i32>>,
24    #[serde(rename = "path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub path: Option<Option<String>>,
26    #[serde(rename = "query", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub query: Option<Option<String>>,
28    #[serde(rename = "fragment", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub fragment: Option<Option<String>>,
30}
31
32impl HttpUri {
33    pub fn new() -> HttpUri {
34        HttpUri {
35            full_uri: None,
36            scheme: None,
37            host: None,
38            port: None,
39            path: None,
40            query: None,
41            fragment: None,
42        }
43    }
44}
45