pub struct IoK8sApimachineryPkgApisMetaV1LabelSelector {
pub match_expressions: Vec<IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement>,
pub match_labels: 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.
Fields§
§match_expressions: Vec<IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement>matchExpressions is a list of label selector requirements. The requirements are ANDed.
match_labels: 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.
Trait Implementations§
Source§impl Clone for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl Clone for IoK8sApimachineryPkgApisMetaV1LabelSelector
Source§fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1LabelSelector
fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1LabelSelector
Returns a duplicate 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<'de> Deserialize<'de> for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl<'de> Deserialize<'de> for IoK8sApimachineryPkgApisMetaV1LabelSelector
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 From<&IoK8sApimachineryPkgApisMetaV1LabelSelector> for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl From<&IoK8sApimachineryPkgApisMetaV1LabelSelector> for IoK8sApimachineryPkgApisMetaV1LabelSelector
Source§fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelector) -> Self
fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelector) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl RefUnwindSafe for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl Send for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl Sync for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl Unpin for IoK8sApimachineryPkgApisMetaV1LabelSelector
impl UnwindSafe for IoK8sApimachineryPkgApisMetaV1LabelSelector
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