Struct k8s_openapi::api::core::v1::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: 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<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
impl StructuralPartialEq for WeightedPodAffinityTerm
Auto Trait Implementations§
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