#[non_exhaustive]pub struct MaxPodsConstraint {
pub max_pods_per_node: i64,
/* private fields */
}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
pub fn new() -> Self
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.
§Example
ⓘ
let x = MaxPodsConstraint::new().set_max_pods_per_node(42);Trait Implementations§
Source§impl Clone for MaxPodsConstraint
impl Clone for MaxPodsConstraint
Source§fn clone(&self) -> MaxPodsConstraint
fn clone(&self) -> MaxPodsConstraint
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 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 Message for MaxPodsConstraint
impl Message for MaxPodsConstraint
Source§impl PartialEq for MaxPodsConstraint
impl PartialEq 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