Struct k8s_openapi::v1_8::api::core::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 Affinity
fn clone(&self) -> Affinity
[src]
fn clone(&self) -> Affinity
Returns 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 Affinity
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Affinity
[src]
impl Default for Affinity
impl PartialEq for Affinity
[src]
impl PartialEq for Affinity
fn eq(&self, other: &Affinity) -> bool
[src]
fn eq(&self, other: &Affinity) -> bool
This 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) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Affinity
[src]
impl<'de> Deserialize<'de> for Affinity
fn 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