Struct k8s_openapi::api::core::v1::PreferredSchedulingTerm
source · 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<PreferredSchedulingTerm> for PreferredSchedulingTerm
impl PartialEq<PreferredSchedulingTerm> for PreferredSchedulingTerm
source§fn eq(&self, other: &PreferredSchedulingTerm) -> bool
fn eq(&self, other: &PreferredSchedulingTerm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.