nomad_client_rs/models/
consul_upstream.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ConsulUpstream {
5    #[serde(rename = "Datacenter", skip_serializing_if = "Option::is_none")]
6    pub datacenter: Option<String>,
7    #[serde(rename = "DestinationName", skip_serializing_if = "Option::is_none")]
8    pub destination_name: Option<String>,
9    #[serde(
10        rename = "DestinationNamespace",
11        skip_serializing_if = "Option::is_none"
12    )]
13    pub destination_namespace: Option<String>,
14    #[serde(rename = "LocalBindAddress", skip_serializing_if = "Option::is_none")]
15    pub local_bind_address: Option<String>,
16    #[serde(rename = "LocalBindPort", skip_serializing_if = "Option::is_none")]
17    pub local_bind_port: Option<i32>,
18    #[serde(rename = "MeshGateway", skip_serializing_if = "Option::is_none")]
19    pub mesh_gateway: Option<crate::models::ConsulMeshGateway>,
20}