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: Self)
fn merge_from(&mut self, other: Self)
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WeightedPodAffinityTerm
impl PartialEq for WeightedPodAffinityTerm
Source§impl Serialize for WeightedPodAffinityTerm
impl Serialize for WeightedPodAffinityTerm
impl StructuralPartialEq for WeightedPodAffinityTerm
Auto Trait Implementations§
impl Freeze for WeightedPodAffinityTerm
impl RefUnwindSafe for WeightedPodAffinityTerm
impl Send for WeightedPodAffinityTerm
impl Sync for WeightedPodAffinityTerm
impl Unpin for WeightedPodAffinityTerm
impl UnwindSafe for WeightedPodAffinityTerm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more