pub struct LabelSelector {
pub match_expressions: Option<Vec<LabelSelectorRequirement>>,
pub match_labels: Option<HashMap<String, String>>,
}Expand description
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +structType=atomic
Fields§
§match_expressions: Option<Vec<LabelSelectorRequirement>>matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
match_labels: Option<HashMap<String, String>>matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optional
Implementations§
Source§impl LabelSelector
impl LabelSelector
pub fn new() -> LabelSelector
Trait Implementations§
Source§impl Clone for LabelSelector
impl Clone for LabelSelector
Source§fn clone(&self) -> LabelSelector
fn clone(&self) -> LabelSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LabelSelector
impl Debug for LabelSelector
Source§impl<'de> Deserialize<'de> for LabelSelector
impl<'de> Deserialize<'de> for LabelSelector
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 LabelSelector
Converts Query Parameters representation (style=form, explode=false) to a LabelSelector value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for LabelSelector
Converts Query Parameters representation (style=form, explode=false) to a LabelSelector value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for LabelSelector
impl PartialEq for LabelSelector
Source§impl Serialize for LabelSelector
impl Serialize for LabelSelector
Source§impl ToString for LabelSelector
Converts the LabelSelector 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 LabelSelector
Converts the LabelSelector 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