pub struct PreferredSchedulingTerm {
pub preference: NodeSelectorTerm,
pub weight: i32,
}
Expand description
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it’s a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
Fields§
§preference: NodeSelectorTerm
A node selector term, associated with the corresponding weight.
weight: i32
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
Trait Implementations§
Source§impl Clone for PreferredSchedulingTerm
impl Clone for PreferredSchedulingTerm
Source§fn clone(&self) -> PreferredSchedulingTerm
fn clone(&self) -> PreferredSchedulingTerm
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 PreferredSchedulingTerm
impl Debug for PreferredSchedulingTerm
Source§impl DeepMerge for PreferredSchedulingTerm
impl DeepMerge for PreferredSchedulingTerm
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for PreferredSchedulingTerm
impl Default for PreferredSchedulingTerm
Source§fn default() -> PreferredSchedulingTerm
fn default() -> PreferredSchedulingTerm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreferredSchedulingTerm
impl<'de> Deserialize<'de> for PreferredSchedulingTerm
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 PartialEq for PreferredSchedulingTerm
impl PartialEq for PreferredSchedulingTerm
Source§impl Serialize for PreferredSchedulingTerm
impl Serialize for PreferredSchedulingTerm
impl StructuralPartialEq for PreferredSchedulingTerm
Auto Trait Implementations§
impl Freeze for PreferredSchedulingTerm
impl RefUnwindSafe for PreferredSchedulingTerm
impl Send for PreferredSchedulingTerm
impl Sync for PreferredSchedulingTerm
impl Unpin for PreferredSchedulingTerm
impl UnwindSafe for PreferredSchedulingTerm
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