Struct google_container1::NodePoolAutoscaling
source · pub struct NodePoolAutoscaling {
pub min_node_count: Option<i32>,
pub enabled: Option<bool>,
pub max_node_count: Option<i32>,
}Expand description
NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
This type is not used in any activity, and only used as part of another schema.
Fields§
§min_node_count: Option<i32>Minimum number of nodes in the NodePool. Must be >= 1 and <= max_node_count.
enabled: Option<bool>Is autoscaling enabled for this node pool.
max_node_count: Option<i32>Maximum number of nodes in the NodePool. Must be >= min_node_count. There has to enough quota to scale up the cluster.
Trait Implementations§
source§impl Clone for NodePoolAutoscaling
impl Clone for NodePoolAutoscaling
source§fn clone(&self) -> NodePoolAutoscaling
fn clone(&self) -> NodePoolAutoscaling
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 NodePoolAutoscaling
impl Debug for NodePoolAutoscaling
source§impl Default for NodePoolAutoscaling
impl Default for NodePoolAutoscaling
source§fn default() -> NodePoolAutoscaling
fn default() -> NodePoolAutoscaling
Returns the “default value” for a type. Read more
source§impl Deserialize for NodePoolAutoscaling
impl Deserialize for NodePoolAutoscaling
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for NodePoolAutoscaling
impl Serialize for NodePoolAutoscaling
impl Part for NodePoolAutoscaling
Auto Trait Implementations§
impl Freeze for NodePoolAutoscaling
impl RefUnwindSafe for NodePoolAutoscaling
impl Send for NodePoolAutoscaling
impl Sync for NodePoolAutoscaling
impl Unpin for NodePoolAutoscaling
impl UnwindSafe for NodePoolAutoscaling
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more