[][src]Struct k8s_openapi::api::core::v1::PreferredSchedulingTerm

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 Debug for PreferredSchedulingTerm[src]

impl Default for PreferredSchedulingTerm[src]

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

impl PartialEq<PreferredSchedulingTerm> for PreferredSchedulingTerm[src]

impl Serialize for PreferredSchedulingTerm[src]

impl StructuralPartialEq for PreferredSchedulingTerm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.