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§
Source§impl Clone for LabelSelector
impl Clone for LabelSelector
Source§fn clone(&self) -> LabelSelector
fn clone(&self) -> LabelSelector
Returns a copy 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 LabelSelector
impl Debug for LabelSelector
Source§impl DeepMerge for LabelSelector
impl DeepMerge for LabelSelector
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for LabelSelector
impl Default for LabelSelector
Source§fn default() -> LabelSelector
fn default() -> LabelSelector
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LabelSelector
impl PartialEq for LabelSelector
Source§impl Serialize for LabelSelector
impl Serialize for LabelSelector
impl StructuralPartialEq for LabelSelector
Auto Trait Implementations§
impl Freeze for LabelSelector
impl RefUnwindSafe for LabelSelector
impl Send for LabelSelector
impl Sync for LabelSelector
impl Unpin for LabelSelector
impl UnwindSafe for LabelSelector
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