Struct k8s_openapi::api::core::v1::WeightedPodAffinityTerm [−][src]
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: PodAffinityTermRequired. A pod affinity term, associated with the corresponding weight.
weight: i32weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for WeightedPodAffinityTermimpl Send for WeightedPodAffinityTermimpl Sync for WeightedPodAffinityTermimpl Unpin for WeightedPodAffinityTermimpl UnwindSafe for WeightedPodAffinityTermBlanket Implementations
Mutably borrows from an owned value. Read more