#[non_exhaustive]pub struct AutoscalingLimits {
pub min_limit: Option<MinLimit>,
pub max_limit: Option<MaxLimit>,
/* private fields */
}Expand description
The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_limit: Option<MinLimit>The minimum compute capacity for the instance.
max_limit: Option<MaxLimit>The maximum compute capacity for the instance. The maximum compute capacity should be less than or equal to 10X the minimum compute capacity.
Implementations§
Source§impl AutoscalingLimits
impl AutoscalingLimits
pub fn new() -> Self
Sourcepub fn set_min_limit<T: Into<Option<MinLimit>>>(self, v: T) -> Self
pub fn set_min_limit<T: Into<Option<MinLimit>>>(self, v: T) -> Self
Sourcepub fn min_nodes(&self) -> Option<&i32>
pub fn min_nodes(&self) -> Option<&i32>
The value of min_limit
if it holds a MinNodes, None if the field is not set or
holds a different branch.
Sourcepub fn set_min_nodes<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_nodes<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn min_processing_units(&self) -> Option<&i32>
pub fn min_processing_units(&self) -> Option<&i32>
The value of min_limit
if it holds a MinProcessingUnits, None if the field is not set or
holds a different branch.
Sourcepub fn set_min_processing_units<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_processing_units<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_max_limit<T: Into<Option<MaxLimit>>>(self, v: T) -> Self
pub fn set_max_limit<T: Into<Option<MaxLimit>>>(self, v: T) -> Self
Sourcepub fn max_nodes(&self) -> Option<&i32>
pub fn max_nodes(&self) -> Option<&i32>
The value of max_limit
if it holds a MaxNodes, None if the field is not set or
holds a different branch.
Sourcepub fn set_max_nodes<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_nodes<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn max_processing_units(&self) -> Option<&i32>
pub fn max_processing_units(&self) -> Option<&i32>
The value of max_limit
if it holds a MaxProcessingUnits, None if the field is not set or
holds a different branch.
Sourcepub fn set_max_processing_units<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_processing_units<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AutoscalingLimits
impl Clone for AutoscalingLimits
Source§fn clone(&self) -> AutoscalingLimits
fn clone(&self) -> AutoscalingLimits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more