#[non_exhaustive]pub struct ClusterAutoscalingConfig {
pub autoscaling_limits: Option<AutoscalingLimits>,
pub autoscaling_targets: Option<AutoscalingTargets>,
/* private fields */
}Expand description
Autoscaling config for a cluster.
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.autoscaling_limits: Option<AutoscalingLimits>Required. Autoscaling limits for this cluster.
autoscaling_targets: Option<AutoscalingTargets>Required. Autoscaling targets for this cluster.
Implementations§
Source§impl ClusterAutoscalingConfig
impl ClusterAutoscalingConfig
pub fn new() -> Self
Sourcepub fn set_autoscaling_limits<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingLimits>,
pub fn set_autoscaling_limits<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingLimits>,
Sets the value of autoscaling_limits.
Sourcepub fn set_or_clear_autoscaling_limits<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingLimits>,
pub fn set_or_clear_autoscaling_limits<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingLimits>,
Sets or clears the value of autoscaling_limits.
Sourcepub fn set_autoscaling_targets<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingTargets>,
pub fn set_autoscaling_targets<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingTargets>,
Sets the value of autoscaling_targets.
Sourcepub fn set_or_clear_autoscaling_targets<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingTargets>,
pub fn set_or_clear_autoscaling_targets<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingTargets>,
Sets or clears the value of autoscaling_targets.
Trait Implementations§
Source§impl Clone for ClusterAutoscalingConfig
impl Clone for ClusterAutoscalingConfig
Source§fn clone(&self) -> ClusterAutoscalingConfig
fn clone(&self) -> ClusterAutoscalingConfig
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 ClusterAutoscalingConfig
impl Debug for ClusterAutoscalingConfig
Source§impl Default for ClusterAutoscalingConfig
impl Default for ClusterAutoscalingConfig
Source§fn default() -> ClusterAutoscalingConfig
fn default() -> ClusterAutoscalingConfig
Returns the “default value” for a type. Read more
Source§impl Message for ClusterAutoscalingConfig
impl Message for ClusterAutoscalingConfig
Source§impl PartialEq for ClusterAutoscalingConfig
impl PartialEq for ClusterAutoscalingConfig
impl StructuralPartialEq for ClusterAutoscalingConfig
Auto Trait Implementations§
impl Freeze for ClusterAutoscalingConfig
impl RefUnwindSafe for ClusterAutoscalingConfig
impl Send for ClusterAutoscalingConfig
impl Sync for ClusterAutoscalingConfig
impl Unpin for ClusterAutoscalingConfig
impl UnwindSafe for ClusterAutoscalingConfig
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