pub struct LabelSelectorRequirement {
pub key: Option<String>,
pub operator: Option<String>,
pub values: Option<Vec<String>>,
}Expand description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Fields§
§key: Option<String>key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
operator: Option<String>§values: Option<Vec<String>>values is 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. This array is replaced during a strategic merge patch. +optional
Implementations§
Source§impl LabelSelectorRequirement
impl LabelSelectorRequirement
pub fn new() -> LabelSelectorRequirement
Trait Implementations§
Source§impl Clone for LabelSelectorRequirement
impl Clone for LabelSelectorRequirement
Source§fn clone(&self) -> LabelSelectorRequirement
fn clone(&self) -> LabelSelectorRequirement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LabelSelectorRequirement
impl Debug for LabelSelectorRequirement
Source§impl<'de> Deserialize<'de> for LabelSelectorRequirement
impl<'de> Deserialize<'de> for LabelSelectorRequirement
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 LabelSelectorRequirement
Converts Query Parameters representation (style=form, explode=false) to a LabelSelectorRequirement value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for LabelSelectorRequirement
Converts Query Parameters representation (style=form, explode=false) to a LabelSelectorRequirement value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for LabelSelectorRequirement
impl PartialEq for LabelSelectorRequirement
Source§impl Serialize for LabelSelectorRequirement
impl Serialize for LabelSelectorRequirement
Source§impl ToString for LabelSelectorRequirement
Converts the LabelSelectorRequirement 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 LabelSelectorRequirement
Converts the LabelSelectorRequirement 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