Struct k8s_openapi::apimachinery::pkg::apis::meta::v1::LabelSelector
source · [−]pub struct LabelSelector {
pub match_expressions: Option<Vec<LabelSelectorRequirement>>,
pub match_labels: Option<BTreeMap<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.
Fields
match_expressions: Option<Vec<LabelSelectorRequirement>>
matchExpressions is a list of label selector requirements. The requirements are ANDed.
match_labels: Option<BTreeMap<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.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LabelSelector
impl Send for LabelSelector
impl Sync for LabelSelector
impl Unpin for LabelSelector
impl UnwindSafe for LabelSelector
Blanket Implementations
Mutably borrows from an owned value. Read more