nomad_client_rs/models/
consul_expose_path.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ConsulExposePath {
5    #[serde(rename = "ListenerPort", skip_serializing_if = "Option::is_none")]
6    pub listener_port: Option<String>,
7    #[serde(rename = "LocalPathPort", skip_serializing_if = "Option::is_none")]
8    pub local_path_port: Option<i32>,
9    #[serde(rename = "Path", skip_serializing_if = "Option::is_none")]
10    pub path: Option<String>,
11    #[serde(rename = "Protocol", skip_serializing_if = "Option::is_none")]
12    pub protocol: Option<String>,
13}