[][src]Struct k8s_openapi::apimachinery::pkg::apis::meta::v1::LabelSelector

pub struct LabelSelector {
    pub match_expressions: Option<Vec<LabelSelectorRequirement>>,
    pub match_labels: Option<BTreeMap<String, String>>,
}

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

impl Clone for LabelSelector[src]

impl Debug for LabelSelector[src]

impl Default for LabelSelector[src]

impl<'de> Deserialize<'de> for LabelSelector[src]

impl PartialEq<LabelSelector> for LabelSelector[src]

impl Serialize for LabelSelector[src]

impl StructuralPartialEq for LabelSelector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.