#[non_exhaustive]pub struct AutoscalingLimits {
pub min_serve_nodes: i32,
pub max_serve_nodes: i32,
/* private fields */
}Expand description
Limits for the number of nodes a Cluster can autoscale up/down to.
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.min_serve_nodes: i32Required. Minimum number of nodes to scale down to.
max_serve_nodes: i32Required. Maximum number of nodes to scale up to.
Implementations§
Source§impl AutoscalingLimits
impl AutoscalingLimits
pub fn new() -> Self
Sourcepub fn set_min_serve_nodes<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_serve_nodes<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_serve_nodes.
Sourcepub fn set_max_serve_nodes<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_serve_nodes<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_serve_nodes.
Trait Implementations§
Source§impl Clone for AutoscalingLimits
impl Clone for AutoscalingLimits
Source§fn clone(&self) -> AutoscalingLimits
fn clone(&self) -> AutoscalingLimits
Returns a duplicate 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 AutoscalingLimits
impl Debug for AutoscalingLimits
Source§impl Default for AutoscalingLimits
impl Default for AutoscalingLimits
Source§fn default() -> AutoscalingLimits
fn default() -> AutoscalingLimits
Returns the “default value” for a type. Read more
Source§impl Message for AutoscalingLimits
impl Message for AutoscalingLimits
Source§impl PartialEq for AutoscalingLimits
impl PartialEq for AutoscalingLimits
impl StructuralPartialEq for AutoscalingLimits
Auto Trait Implementations§
impl Freeze for AutoscalingLimits
impl RefUnwindSafe for AutoscalingLimits
impl Send for AutoscalingLimits
impl Sync for AutoscalingLimits
impl Unpin for AutoscalingLimits
impl UnwindSafe for AutoscalingLimits
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