nomad_client/models/
consul_proxy.rs1#[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