sonarr_api_rs/models/
http_uri.rs1use 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