pub struct PreferredSchedulingTerm {
pub preference: Option<NodeSelectorTerm>,
pub weight: Option<i32>,
}Expand description
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it’s a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
Fields§
§preference: Option<NodeSelectorTerm>§weight: Option<i32>Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
Implementations§
Source§impl PreferredSchedulingTerm
impl PreferredSchedulingTerm
pub fn new() -> PreferredSchedulingTerm
Trait Implementations§
Source§impl Clone for PreferredSchedulingTerm
impl Clone for PreferredSchedulingTerm
Source§fn clone(&self) -> PreferredSchedulingTerm
fn clone(&self) -> PreferredSchedulingTerm
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 PreferredSchedulingTerm
impl Debug for PreferredSchedulingTerm
Source§impl<'de> Deserialize<'de> for PreferredSchedulingTerm
impl<'de> Deserialize<'de> for PreferredSchedulingTerm
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 PreferredSchedulingTerm
Converts Query Parameters representation (style=form, explode=false) to a PreferredSchedulingTerm value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for PreferredSchedulingTerm
Converts Query Parameters representation (style=form, explode=false) to a PreferredSchedulingTerm value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for PreferredSchedulingTerm
impl PartialEq for PreferredSchedulingTerm
Source§impl Serialize for PreferredSchedulingTerm
impl Serialize for PreferredSchedulingTerm
Source§impl ToString for PreferredSchedulingTerm
Converts the PreferredSchedulingTerm 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 PreferredSchedulingTerm
Converts the PreferredSchedulingTerm 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 PreferredSchedulingTerm
impl Validate for PreferredSchedulingTerm
Source§impl<'v_a> ValidateArgs<'v_a> for PreferredSchedulingTerm
impl<'v_a> ValidateArgs<'v_a> for PreferredSchedulingTerm
impl StructuralPartialEq for PreferredSchedulingTerm
Auto Trait Implementations§
impl Freeze for PreferredSchedulingTerm
impl RefUnwindSafe for PreferredSchedulingTerm
impl Send for PreferredSchedulingTerm
impl Sync for PreferredSchedulingTerm
impl Unpin for PreferredSchedulingTerm
impl UnwindSafe for PreferredSchedulingTerm
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