#[non_exhaustive]pub struct BestEffortProvisioning {
pub enabled: bool,
pub min_provision_nodes: i32,
}Expand description
Best effort provisioning.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolWhen this is enabled, cluster/node pool creations will ignore non-fatal errors like stockout to best provision as many nodes as possible right now and eventually bring up all target number of nodes
min_provision_nodes: i32Minimum number of nodes to be provisioned to be considered as succeeded, and the rest of nodes will be provisioned gradually and eventually when stockout issue has been resolved.
Implementations§
Source§impl BestEffortProvisioning
impl BestEffortProvisioning
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_min_provision_nodes<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_provision_nodes<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_provision_nodes.
Trait Implementations§
Source§impl Clone for BestEffortProvisioning
impl Clone for BestEffortProvisioning
Source§fn clone(&self) -> BestEffortProvisioning
fn clone(&self) -> BestEffortProvisioning
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 BestEffortProvisioning
impl Debug for BestEffortProvisioning
Source§impl Default for BestEffortProvisioning
impl Default for BestEffortProvisioning
Source§fn default() -> BestEffortProvisioning
fn default() -> BestEffortProvisioning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BestEffortProvisioningwhere
BestEffortProvisioning: Default,
impl<'de> Deserialize<'de> for BestEffortProvisioningwhere
BestEffortProvisioning: Default,
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 Message for BestEffortProvisioning
impl Message for BestEffortProvisioning
Source§impl PartialEq for BestEffortProvisioning
impl PartialEq for BestEffortProvisioning
Source§impl Serialize for BestEffortProvisioning
impl Serialize for BestEffortProvisioning
impl StructuralPartialEq for BestEffortProvisioning
Auto Trait Implementations§
impl Freeze for BestEffortProvisioning
impl RefUnwindSafe for BestEffortProvisioning
impl Send for BestEffortProvisioning
impl Sync for BestEffortProvisioning
impl Unpin for BestEffortProvisioning
impl UnwindSafe for BestEffortProvisioning
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