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 WeightedPodAffinityTermfn clone(&self) -> WeightedPodAffinityTerm[src]
fn clone(&self) -> WeightedPodAffinityTermReturns 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 WeightedPodAffinityTermfn 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 WeightedPodAffinityTerm[src]
impl Default for WeightedPodAffinityTermfn default() -> WeightedPodAffinityTerm[src]
fn default() -> WeightedPodAffinityTermReturns the "default value" for a type. Read more
impl PartialEq for WeightedPodAffinityTerm[src]
impl PartialEq for WeightedPodAffinityTermfn eq(&self, other: &WeightedPodAffinityTerm) -> bool[src]
fn eq(&self, other: &WeightedPodAffinityTerm) -> boolThis 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) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for WeightedPodAffinityTerm[src]
impl<'de> Deserialize<'de> for WeightedPodAffinityTermfn 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 WeightedPodAffinityTermAuto Trait Implementations
impl Send for WeightedPodAffinityTerm
impl Send for WeightedPodAffinityTermimpl Sync for WeightedPodAffinityTerm
impl Sync for WeightedPodAffinityTerm