pub struct AutopilotZone {
pub servers: Vec<String>,
pub voters: Vec<String>,
pub failure_tolerance: i64,
}
Expand description
AutopilotZone holds the list of servers in a redundancy zone. (Enterprise only)
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§servers: Vec<String>
Servers holds the list of servers in the redundancy zone.
voters: Vec<String>
Voters holds the list of servers that are voters in the redundancy zone.
failure_tolerance: i64
FailureTolerance is the number of servers that could be lost without an outage occurring.
Trait Implementations§
Source§impl Clone for AutopilotZone
impl Clone for AutopilotZone
Source§fn clone(&self) -> AutopilotZone
fn clone(&self) -> AutopilotZone
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 AutopilotZone
impl Debug for AutopilotZone
Source§impl Default for AutopilotZone
impl Default for AutopilotZone
Source§fn default() -> AutopilotZone
fn default() -> AutopilotZone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutopilotZone
impl<'de> Deserialize<'de> for AutopilotZone
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 AutopilotZone
impl PartialEq for AutopilotZone
Source§impl Serialize for AutopilotZone
impl Serialize for AutopilotZone
impl StructuralPartialEq for AutopilotZone
Auto Trait Implementations§
impl Freeze for AutopilotZone
impl RefUnwindSafe for AutopilotZone
impl Send for AutopilotZone
impl Sync for AutopilotZone
impl Unpin for AutopilotZone
impl UnwindSafe for AutopilotZone
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