Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::Affinity [−][src]
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 Clone for Affinityfn clone(&self) -> Affinity[src]
fn clone(&self) -> AffinityReturns 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 Affinity[src]
impl Debug for Affinityfn 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 Affinity[src]
impl Default for Affinityimpl PartialEq for Affinity[src]
impl PartialEq for Affinityfn eq(&self, other: &Affinity) -> bool[src]
fn eq(&self, other: &Affinity) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Affinity) -> bool[src]
fn ne(&self, other: &Affinity) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for Affinity[src]
impl<'de> Deserialize<'de> for Affinityfn 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 Affinity[src]
impl Serialize for Affinity