pub struct IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement {
pub key: String,
pub operator: String,
pub values: Vec<String>,
}Expand description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Fields§
§key: Stringkey is the label key that the selector applies to.
operator: Stringoperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values: Vec<String>values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Trait Implementations§
Source§impl Clone for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl Clone for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
Source§fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
fn clone(&self) -> IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
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 IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl<'de> Deserialize<'de> for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
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<&IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement> for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl From<&IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement> for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
Source§fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement) -> Self
fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl RefUnwindSafe for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl Send for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl Sync for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl Unpin for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
impl UnwindSafe for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
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