pub struct ConsulUpstream {
pub mesh_gateway: Option<ConsulMeshGateway>,
pub destination_peer: Option<String>,
pub destination_partition: Option<String>,
pub local_bind_port: Option<i64>,
pub datacenter: Option<String>,
pub local_bind_address: Option<String>,
pub local_bind_socket_path: Option<String>,
pub local_bind_socket_mode: Option<String>,
pub config: Option<HashMap<String, Value>>,
pub destination_name: Option<String>,
pub destination_namespace: Option<String>,
pub destination_type: Option<String>,
}
Expand description
ConsulUpstream represents a Consul Connect upstream jobspec block.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§mesh_gateway: Option<ConsulMeshGateway>
§destination_peer: Option<String>
§destination_partition: Option<String>
§local_bind_port: Option<i64>
§datacenter: Option<String>
§local_bind_address: Option<String>
§local_bind_socket_path: Option<String>
§local_bind_socket_mode: Option<String>
§config: Option<HashMap<String, Value>>
§destination_name: Option<String>
§destination_namespace: Option<String>
§destination_type: Option<String>
Trait Implementations§
Source§impl Clone for ConsulUpstream
impl Clone for ConsulUpstream
Source§fn clone(&self) -> ConsulUpstream
fn clone(&self) -> ConsulUpstream
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsulUpstream
impl Debug for ConsulUpstream
Source§impl Default for ConsulUpstream
impl Default for ConsulUpstream
Source§fn default() -> ConsulUpstream
fn default() -> ConsulUpstream
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsulUpstream
impl<'de> Deserialize<'de> for ConsulUpstream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConsulUpstream
impl PartialEq for ConsulUpstream
Source§impl Serialize for ConsulUpstream
impl Serialize for ConsulUpstream
impl StructuralPartialEq for ConsulUpstream
Auto Trait Implementations§
impl Freeze for ConsulUpstream
impl RefUnwindSafe for ConsulUpstream
impl Send for ConsulUpstream
impl Sync for ConsulUpstream
impl Unpin for ConsulUpstream
impl UnwindSafe for ConsulUpstream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more