Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::WeightedPodAffinityTerm [−][src]
pub struct WeightedPodAffinityTerm { pub pod_affinity_term: PodAffinityTerm, pub weight: i32, }
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
Fields
pod_affinity_term: PodAffinityTerm
Required. A pod affinity term, associated with the corresponding weight.
weight: i32
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
Trait Implementations
impl Clone for WeightedPodAffinityTerm
[src]
impl Clone for WeightedPodAffinityTerm
fn clone(&self) -> WeightedPodAffinityTerm
[src]
fn clone(&self) -> WeightedPodAffinityTerm
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 WeightedPodAffinityTerm
[src]
impl Debug for WeightedPodAffinityTerm
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 WeightedPodAffinityTerm
[src]
impl Default for WeightedPodAffinityTerm
fn default() -> WeightedPodAffinityTerm
[src]
fn default() -> WeightedPodAffinityTerm
Returns the "default value" for a type. Read more
impl PartialEq for WeightedPodAffinityTerm
[src]
impl PartialEq for WeightedPodAffinityTerm
fn eq(&self, other: &WeightedPodAffinityTerm) -> bool
[src]
fn eq(&self, other: &WeightedPodAffinityTerm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WeightedPodAffinityTerm) -> bool
[src]
fn ne(&self, other: &WeightedPodAffinityTerm) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for WeightedPodAffinityTerm
[src]
impl<'de> Deserialize<'de> for WeightedPodAffinityTerm
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 WeightedPodAffinityTerm
[src]
impl Serialize for WeightedPodAffinityTerm
Auto Trait Implementations
impl Send for WeightedPodAffinityTerm
impl Send for WeightedPodAffinityTerm
impl Sync for WeightedPodAffinityTerm
impl Sync for WeightedPodAffinityTerm