/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ConsulExposePath {
    #[serde(rename = "Path")]
    pub path: String,

    #[serde(rename = "Protocol")]
    pub protocol: String,

    #[serde(rename = "local_path_port", skip_serializing_if = "Option::is_none")]
    pub local_path_port: Option<i64>,

    #[serde(rename = "listener_port", skip_serializing_if = "Option::is_none")]
    pub listener_port: Option<String>,
}
