pub struct FailureDomainSelection {
pub selected_failure_domains: Vec<String>,
pub spread: i32,
}Expand description
Failure-domain policy selected for a compute pool.
JSON schema
{
"description": "Failure-domain policy selected for a compute pool.",
"type": "object",
"required": [
"spread"
],
"properties": {
"selectedFailureDomains": {
"description": "Concrete provider domains selected during setup.\nEmpty delegates deterministic selection to the provider setup implementation.",
"type": "array",
"items": {
"type": "string"
}
},
"spread": {
"description": "Number of distinct failure domains across which new stateful replicas may be spread.",
"type": "integer",
"format": "int32",
"minimum": 0.0
}
}
}Fields§
§selected_failure_domains: Vec<String>Concrete provider domains selected during setup. Empty delegates deterministic selection to the provider setup implementation.
spread: i32Number of distinct failure domains across which new stateful replicas may be spread.
Implementations§
Source§impl FailureDomainSelection
impl FailureDomainSelection
pub fn builder() -> FailureDomainSelection
Trait Implementations§
Source§impl Clone for FailureDomainSelection
impl Clone for FailureDomainSelection
Source§fn clone(&self) -> FailureDomainSelection
fn clone(&self) -> FailureDomainSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FailureDomainSelection
impl Debug for FailureDomainSelection
Source§impl<'de> Deserialize<'de> for FailureDomainSelection
impl<'de> Deserialize<'de> for FailureDomainSelection
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 From<&FailureDomainSelection> for FailureDomainSelection
impl From<&FailureDomainSelection> for FailureDomainSelection
Source§fn from(value: &FailureDomainSelection) -> Self
fn from(value: &FailureDomainSelection) -> Self
Converts to this type from the input type.
Source§impl From<FailureDomainSelection> for FailureDomainSelection
impl From<FailureDomainSelection> for FailureDomainSelection
Source§fn from(value: FailureDomainSelection) -> Self
fn from(value: FailureDomainSelection) -> Self
Converts to this type from the input type.
Source§impl Serialize for FailureDomainSelection
impl Serialize for FailureDomainSelection
Source§impl TryFrom<FailureDomainSelection> for FailureDomainSelection
impl TryFrom<FailureDomainSelection> for FailureDomainSelection
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FailureDomainSelection) -> Result<Self, ConversionError>
fn try_from(value: FailureDomainSelection) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FailureDomainSelection
impl RefUnwindSafe for FailureDomainSelection
impl Send for FailureDomainSelection
impl Sync for FailureDomainSelection
impl Unpin for FailureDomainSelection
impl UnsafeUnpin for FailureDomainSelection
impl UnwindSafe for FailureDomainSelection
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