nomad_client/models/
consul_proxy.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ConsulProxy {
16    #[serde(rename = "LocalServiceAddress", skip_serializing_if = "Option::is_none")]
17    pub local_service_address: Option<String>,
18    #[serde(rename = "LocalServicePort", skip_serializing_if = "Option::is_none")]
19    pub local_service_port: Option<i32>,
20    #[serde(rename = "Upstreams", skip_serializing_if = "Option::is_none")]
21    pub upstreams: Option<Vec<crate::models::ConsulUpstream>>,
22    #[serde(rename = "Config", skip_serializing_if = "Option::is_none")]
23    pub config: Option<::std::collections::HashMap<String, serde_json::Value>>,
24}
25
26impl ConsulProxy {
27    pub fn new() -> ConsulProxy {
28        ConsulProxy {
29            local_service_address: None,
30            local_service_port: None,
31            upstreams: None,
32            config: None,
33        }
34    }
35}
36
37