Struct k8s_openapi::v1_8::api::core::v1::PreferredSchedulingTerm [−][src]
pub struct PreferredSchedulingTerm { pub preference: NodeSelectorTerm, pub weight: i32, }
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
impl Clone for PreferredSchedulingTerm
[src]
impl Clone for PreferredSchedulingTerm
fn clone(&self) -> PreferredSchedulingTerm
[src]
fn clone(&self) -> PreferredSchedulingTerm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for PreferredSchedulingTerm
[src]
impl Debug for PreferredSchedulingTerm
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for PreferredSchedulingTerm
[src]
impl Default for PreferredSchedulingTerm
fn default() -> PreferredSchedulingTerm
[src]
fn default() -> PreferredSchedulingTerm
Returns the "default value" for a type. Read more
impl PartialEq for PreferredSchedulingTerm
[src]
impl PartialEq for PreferredSchedulingTerm
fn eq(&self, other: &PreferredSchedulingTerm) -> bool
[src]
fn eq(&self, other: &PreferredSchedulingTerm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PreferredSchedulingTerm) -> bool
[src]
fn ne(&self, other: &PreferredSchedulingTerm) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for PreferredSchedulingTerm
[src]
impl<'de> Deserialize<'de> for PreferredSchedulingTerm
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for PreferredSchedulingTerm
[src]
impl Serialize for PreferredSchedulingTerm
Auto Trait Implementations
impl Send for PreferredSchedulingTerm
impl Send for PreferredSchedulingTerm
impl Sync for PreferredSchedulingTerm
impl Sync for PreferredSchedulingTerm