Struct k8s_openapi::v1_7::kubernetes::pkg::api::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 PreferredSchedulingTermfn clone(&self) -> PreferredSchedulingTerm[src]
fn clone(&self) -> PreferredSchedulingTermReturns 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 PreferredSchedulingTermfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for PreferredSchedulingTerm[src]
impl Default for PreferredSchedulingTermfn default() -> PreferredSchedulingTerm[src]
fn default() -> PreferredSchedulingTermReturns the "default value" for a type. Read more
impl PartialEq for PreferredSchedulingTerm[src]
impl PartialEq for PreferredSchedulingTermfn eq(&self, other: &PreferredSchedulingTerm) -> bool[src]
fn eq(&self, other: &PreferredSchedulingTerm) -> boolThis 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) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for PreferredSchedulingTerm[src]
impl<'de> Deserialize<'de> for PreferredSchedulingTermfn 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 PreferredSchedulingTermAuto Trait Implementations
impl Send for PreferredSchedulingTerm
impl Send for PreferredSchedulingTermimpl Sync for PreferredSchedulingTerm
impl Sync for PreferredSchedulingTerm