pub struct NodeSelectorRequirement {
pub key: Option<String>,
pub operator: Option<String>,
pub values: Option<Vec<String>>,
}Expand description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Fields§
§key: Option<String>The label key that the selector applies to.
operator: Option<String>A node selector operator is the set of operators that can be used in a node selector requirement. +enum
values: Option<Vec<String>>An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional
Implementations§
Source§impl NodeSelectorRequirement
impl NodeSelectorRequirement
pub fn new() -> NodeSelectorRequirement
Trait Implementations§
Source§impl Clone for NodeSelectorRequirement
impl Clone for NodeSelectorRequirement
Source§fn clone(&self) -> NodeSelectorRequirement
fn clone(&self) -> NodeSelectorRequirement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeSelectorRequirement
impl Debug for NodeSelectorRequirement
Source§impl<'de> Deserialize<'de> for NodeSelectorRequirement
impl<'de> Deserialize<'de> for NodeSelectorRequirement
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>,
Source§impl FromStr for NodeSelectorRequirement
Converts Query Parameters representation (style=form, explode=false) to a NodeSelectorRequirement value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for NodeSelectorRequirement
Converts Query Parameters representation (style=form, explode=false) to a NodeSelectorRequirement value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for NodeSelectorRequirement
impl PartialEq for NodeSelectorRequirement
Source§impl Serialize for NodeSelectorRequirement
impl Serialize for NodeSelectorRequirement
Source§impl ToString for NodeSelectorRequirement
Converts the NodeSelectorRequirement 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 NodeSelectorRequirement
Converts the NodeSelectorRequirement 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