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
sourceimpl Clone for WeightedPodAffinityTerm
impl Clone for WeightedPodAffinityTerm
sourcefn clone(&self) -> WeightedPodAffinityTerm
fn clone(&self) -> WeightedPodAffinityTerm
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WeightedPodAffinityTerm
impl Debug for WeightedPodAffinityTerm
sourceimpl DeepMerge for WeightedPodAffinityTerm
impl DeepMerge for WeightedPodAffinityTerm
sourcefn merge_from(&mut self, other: WeightedPodAffinityTerm)
fn merge_from(&mut self, other: WeightedPodAffinityTerm)
Merge
other
into self
.sourceimpl Default for WeightedPodAffinityTerm
impl Default for WeightedPodAffinityTerm
sourcefn default() -> WeightedPodAffinityTerm
fn default() -> WeightedPodAffinityTerm
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WeightedPodAffinityTerm
impl<'de> Deserialize<'de> for WeightedPodAffinityTerm
sourcefn 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
sourceimpl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
impl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
sourcefn eq(&self, other: &WeightedPodAffinityTerm) -> bool
fn eq(&self, other: &WeightedPodAffinityTerm) -> bool
sourceimpl Serialize for WeightedPodAffinityTerm
impl Serialize for WeightedPodAffinityTerm
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more