pub struct ConsulBuilder { /* private fields */ }
Expand description
Builder for Consul
.
Implementations§
Source§impl ConsulBuilder
impl ConsulBuilder
Sourcepub fn partition(&mut self, value: Option<String>) -> &mut Self
pub fn partition(&mut self, value: Option<String>) -> &mut Self
Partition is the Consul admin partition where the workload should run. This is available in Nomad CE but only works with Consul ENT
Sourcepub fn namespace(&mut self, value: Option<String>) -> &mut Self
pub fn namespace(&mut self, value: Option<String>) -> &mut Self
(Enterprise-only) Namespace represents a Consul namespace.
Trait Implementations§
Source§impl Clone for ConsulBuilder
impl Clone for ConsulBuilder
Source§fn clone(&self) -> ConsulBuilder
fn clone(&self) -> ConsulBuilder
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 moreAuto Trait Implementations§
impl Freeze for ConsulBuilder
impl RefUnwindSafe for ConsulBuilder
impl Send for ConsulBuilder
impl Sync for ConsulBuilder
impl Unpin for ConsulBuilder
impl UnwindSafe for ConsulBuilder
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