pub struct Consul {
pub namespace: Option<String>,
pub cluster: Option<String>,
pub partition: Option<String>,
}
Expand description
Consul represents configuration related to consul.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§namespace: Option<String>
(Enterprise-only) Namespace represents a Consul namespace.
cluster: Option<String>
(Enterprise-only) Cluster represents a specific Consul cluster.
partition: Option<String>
Partition is the Consul admin partition where the workload should run. This is available in Nomad CE but only works with Consul ENT
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Consul
impl<'de> Deserialize<'de> for Consul
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
impl StructuralPartialEq for Consul
Auto Trait Implementations§
impl Freeze for Consul
impl RefUnwindSafe for Consul
impl Send for Consul
impl Sync for Consul
impl Unpin for Consul
impl UnwindSafe for Consul
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