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

A node selector term, associated with the corresponding weight.

Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.

Trait Implementations

impl Clone for PreferredSchedulingTerm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PreferredSchedulingTerm
[src]

Formats the value using the given formatter. Read more

impl Default for PreferredSchedulingTerm
[src]

Returns the "default value" for a type. Read more

impl PartialEq for PreferredSchedulingTerm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for PreferredSchedulingTerm
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PreferredSchedulingTerm
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations