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

pub struct Affinity {
    pub node_affinity: Option<NodeAffinity>,
    pub pod_affinity: Option<PodAffinity>,
    pub pod_anti_affinity: Option<PodAntiAffinity>,
}

Affinity is a group of affinity scheduling rules.

Fields

node_affinity: Option<NodeAffinity>

Describes node affinity scheduling rules for the pod.

pod_affinity: Option<PodAffinity>

Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).

pod_anti_affinity: Option<PodAntiAffinity>

Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).

Trait Implementations

impl Clone for Affinity[src]

impl Debug for Affinity[src]

impl Default for Affinity[src]

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

impl PartialEq<Affinity> for Affinity[src]

impl Serialize for Affinity[src]

impl StructuralPartialEq for Affinity[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.