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

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

/// ConsulConnect represents a Consul Connect jobspec block.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ConsulConnect {
    #[serde(rename = "sidecar_service", skip_serializing_if = "Option::is_none")]
    pub sidecar_service: Option<super::ConsulSidecarService>,

    #[serde(rename = "sidecar_task", skip_serializing_if = "Option::is_none")]
    pub sidecar_task: Option<super::SidecarTask>,

    #[serde(rename = "Native")]
    pub native: bool,

    #[serde(rename = "Gateway", skip_serializing_if = "Option::is_none")]
    pub gateway: Option<super::ConsulGateway>,
}
