#[non_exhaustive]pub struct MaxPodsConstraint {
pub max_pods_per_node: i64,
}Expand description
Constraints applied to pods.
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.max_pods_per_node: i64Constraint enforced on the max num of pods per node.
Implementations§
Source§impl MaxPodsConstraint
impl MaxPodsConstraint
Sourcepub fn set_max_pods_per_node<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_pods_per_node<T: Into<i64>>(self, v: T) -> Self
Sets the value of max_pods_per_node.
Trait Implementations§
Source§impl Clone for MaxPodsConstraint
impl Clone for MaxPodsConstraint
Source§fn clone(&self) -> MaxPodsConstraint
fn clone(&self) -> MaxPodsConstraint
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 MaxPodsConstraint
impl Debug for MaxPodsConstraint
Source§impl Default for MaxPodsConstraint
impl Default for MaxPodsConstraint
Source§fn default() -> MaxPodsConstraint
fn default() -> MaxPodsConstraint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaxPodsConstraintwhere
MaxPodsConstraint: Default,
impl<'de> Deserialize<'de> for MaxPodsConstraintwhere
MaxPodsConstraint: 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 MaxPodsConstraint
impl Message for MaxPodsConstraint
Source§impl PartialEq for MaxPodsConstraint
impl PartialEq for MaxPodsConstraint
Source§impl Serialize for MaxPodsConstraint
impl Serialize for MaxPodsConstraint
impl StructuralPartialEq for MaxPodsConstraint
Auto Trait Implementations§
impl Freeze for MaxPodsConstraint
impl RefUnwindSafe for MaxPodsConstraint
impl Send for MaxPodsConstraint
impl Sync for MaxPodsConstraint
impl Unpin for MaxPodsConstraint
impl UnwindSafe for MaxPodsConstraint
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