Struct k8s_openapi_ext::corev1::WeightedPodAffinityTerm
source · pub struct WeightedPodAffinityTerm {
pub pod_affinity_term: PodAffinityTerm,
pub weight: i32,
}
Expand description
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§
source§impl Clone for WeightedPodAffinityTerm
impl Clone for WeightedPodAffinityTerm
source§fn clone(&self) -> WeightedPodAffinityTerm
fn clone(&self) -> WeightedPodAffinityTerm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WeightedPodAffinityTerm
impl Debug for WeightedPodAffinityTerm
source§impl DeepMerge for WeightedPodAffinityTerm
impl DeepMerge for WeightedPodAffinityTerm
source§fn merge_from(&mut self, other: WeightedPodAffinityTerm)
fn merge_from(&mut self, other: WeightedPodAffinityTerm)
Merge
other
into self
.source§impl Default for WeightedPodAffinityTerm
impl Default for WeightedPodAffinityTerm
source§fn default() -> WeightedPodAffinityTerm
fn default() -> WeightedPodAffinityTerm
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WeightedPodAffinityTerm
impl<'de> Deserialize<'de> for WeightedPodAffinityTerm
source§fn deserialize<D>(
deserializer: D
) -> Result<WeightedPodAffinityTerm, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<WeightedPodAffinityTerm, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
impl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
source§fn eq(&self, other: &WeightedPodAffinityTerm) -> bool
fn eq(&self, other: &WeightedPodAffinityTerm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WeightedPodAffinityTerm
impl Serialize for WeightedPodAffinityTerm
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more