pub struct OperatorHealthReplyBuilder { /* private fields */ }
Expand description
Builder for OperatorHealthReply
.
Implementations§
Source§impl OperatorHealthReplyBuilder
impl OperatorHealthReplyBuilder
Sourcepub fn optimistic_failure_tolerance(&mut self, value: Option<i64>) -> &mut Self
pub fn optimistic_failure_tolerance(&mut self, value: Option<i64>) -> &mut Self
The number of servers that could be lost without an outage occurring if all the voters don’t fail at once. (Enterprise only)
Sourcepub fn failure_tolerance(&mut self, value: i64) -> &mut Self
pub fn failure_tolerance(&mut self, value: i64) -> &mut Self
FailureTolerance is the number of healthy servers that could be lost without an outage occurring.
Sourcepub fn servers(&mut self, value: Vec<ServerHealth>) -> &mut Self
pub fn servers(&mut self, value: Vec<ServerHealth>) -> &mut Self
Servers holds the health of each server.
Sourcepub fn redundancy_zones(
&mut self,
value: Option<HashMap<String, AutopilotZone>>,
) -> &mut Self
pub fn redundancy_zones( &mut self, value: Option<HashMap<String, AutopilotZone>>, ) -> &mut Self
RedundancyZones holds the list of servers in each redundancy zone. (Enterprise only)
Sourcepub fn upgrade(&mut self, value: Option<AutopilotUpgrade>) -> &mut Self
pub fn upgrade(&mut self, value: Option<AutopilotUpgrade>) -> &mut Self
Upgrade holds the current upgrade status.
Sourcepub fn healthy(&mut self, value: bool) -> &mut Self
pub fn healthy(&mut self, value: bool) -> &mut Self
Healthy is true if all the servers in the cluster are healthy.
Sourcepub fn voters(&mut self, value: Vec<String>) -> &mut Self
pub fn voters(&mut self, value: Vec<String>) -> &mut Self
List of servers that are voters in the Raft configuration.
Sourcepub fn read_replicas(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn read_replicas(&mut self, value: Option<Vec<String>>) -> &mut Self
ReadReplicas holds the list of servers that are read replicas in the Raft configuration. (Enterprise only)
Sourcepub fn build(
&self,
) -> Result<OperatorHealthReply, OperatorHealthReplyBuilderError>
pub fn build( &self, ) -> Result<OperatorHealthReply, OperatorHealthReplyBuilderError>
Trait Implementations§
Source§impl Clone for OperatorHealthReplyBuilder
impl Clone for OperatorHealthReplyBuilder
Source§fn clone(&self) -> OperatorHealthReplyBuilder
fn clone(&self) -> OperatorHealthReplyBuilder
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 OperatorHealthReplyBuilder
impl RefUnwindSafe for OperatorHealthReplyBuilder
impl Send for OperatorHealthReplyBuilder
impl Sync for OperatorHealthReplyBuilder
impl Unpin for OperatorHealthReplyBuilder
impl UnwindSafe for OperatorHealthReplyBuilder
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