pub struct WeightedPodAffinityTerm {
pub pod_affinity_term: Option<PodAffinityTerm>,
pub weight: Option<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: Option<PodAffinityTerm>§weight: Option<i32>weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
Implementations§
Source§impl WeightedPodAffinityTerm
impl WeightedPodAffinityTerm
pub fn new() -> WeightedPodAffinityTerm
Trait Implementations§
Source§impl Clone for WeightedPodAffinityTerm
impl Clone for WeightedPodAffinityTerm
Source§fn clone(&self) -> WeightedPodAffinityTerm
fn clone(&self) -> WeightedPodAffinityTerm
Returns a duplicate 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<'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 FromStr for WeightedPodAffinityTerm
Converts Query Parameters representation (style=form, explode=false) to a WeightedPodAffinityTerm value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for WeightedPodAffinityTerm
Converts Query Parameters representation (style=form, explode=false) to a WeightedPodAffinityTerm value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for WeightedPodAffinityTerm
impl PartialEq for WeightedPodAffinityTerm
Source§impl Serialize for WeightedPodAffinityTerm
impl Serialize for WeightedPodAffinityTerm
Source§impl ToString for WeightedPodAffinityTerm
Converts the WeightedPodAffinityTerm value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for WeightedPodAffinityTerm
Converts the WeightedPodAffinityTerm value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for WeightedPodAffinityTerm
impl Validate for WeightedPodAffinityTerm
Source§impl<'v_a> ValidateArgs<'v_a> for WeightedPodAffinityTerm
impl<'v_a> ValidateArgs<'v_a> 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