pub struct ConsulMeshGateway {
pub mode: Option<String>,
}
Expand description
ConsulMeshGateway is used to configure mesh gateway usage when connecting to a connect upstream in another datacenter.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§mode: Option<String>
Mode configures how an upstream should be accessed with regard to using mesh gateways.
local - the connect proxy makes outbound connections through mesh gateway originating in the same datacenter.
remote - the connect proxy makes outbound connections to a mesh gateway in the destination datacenter.
none (default) - no mesh gateway is used, the proxy makes outbound connections directly to destination services.
https://www.consul.io/docs/connect/gateways/mesh-gateway#modes-of-operation
Implementations§
Source§impl ConsulMeshGateway
impl ConsulMeshGateway
pub fn builder() -> ConsulMeshGatewayBuilder
Trait Implementations§
Source§impl Clone for ConsulMeshGateway
impl Clone for ConsulMeshGateway
Source§fn clone(&self) -> ConsulMeshGateway
fn clone(&self) -> ConsulMeshGateway
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 ConsulMeshGateway
impl Debug for ConsulMeshGateway
Source§impl Default for ConsulMeshGateway
impl Default for ConsulMeshGateway
Source§fn default() -> ConsulMeshGateway
fn default() -> ConsulMeshGateway
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsulMeshGateway
impl<'de> Deserialize<'de> for ConsulMeshGateway
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 ConsulMeshGateway
impl PartialEq for ConsulMeshGateway
Source§impl Serialize for ConsulMeshGateway
impl Serialize for ConsulMeshGateway
impl StructuralPartialEq for ConsulMeshGateway
Auto Trait Implementations§
impl Freeze for ConsulMeshGateway
impl RefUnwindSafe for ConsulMeshGateway
impl Send for ConsulMeshGateway
impl Sync for ConsulMeshGateway
impl Unpin for ConsulMeshGateway
impl UnwindSafe for ConsulMeshGateway
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