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
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WeightedPodAffinityTerm
impl Debug for WeightedPodAffinityTerm
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<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
sourceimpl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
impl PartialEq<WeightedPodAffinityTerm> for WeightedPodAffinityTerm
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WeightedPodAffinityTerm) -> bool
fn ne(&self, other: &WeightedPodAffinityTerm) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more