pub struct IoK8sApiCoreV1NodeSelectorRequirement {
pub key: String,
pub operator: IoK8sApiCoreV1NodeSelectorRequirementOperator,
pub values: Vec<String>,
}Expand description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Fields§
§key: StringThe label key that the selector applies to.
operator: IoK8sApiCoreV1NodeSelectorRequirementOperatorRepresents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
Possible enum values:
"DoesNotExist""Exists""Gt""In""Lt""NotIn"
values: Vec<String>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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1NodeSelectorRequirement
impl Clone for IoK8sApiCoreV1NodeSelectorRequirement
Source§fn clone(&self) -> IoK8sApiCoreV1NodeSelectorRequirement
fn clone(&self) -> IoK8sApiCoreV1NodeSelectorRequirement
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 IoK8sApiCoreV1NodeSelectorRequirement
impl<'de> Deserialize<'de> for IoK8sApiCoreV1NodeSelectorRequirement
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<&IoK8sApiCoreV1NodeSelectorRequirement> for IoK8sApiCoreV1NodeSelectorRequirement
impl From<&IoK8sApiCoreV1NodeSelectorRequirement> for IoK8sApiCoreV1NodeSelectorRequirement
Source§fn from(value: &IoK8sApiCoreV1NodeSelectorRequirement) -> Self
fn from(value: &IoK8sApiCoreV1NodeSelectorRequirement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1NodeSelectorRequirement
impl RefUnwindSafe for IoK8sApiCoreV1NodeSelectorRequirement
impl Send for IoK8sApiCoreV1NodeSelectorRequirement
impl Sync for IoK8sApiCoreV1NodeSelectorRequirement
impl Unpin for IoK8sApiCoreV1NodeSelectorRequirement
impl UnwindSafe for IoK8sApiCoreV1NodeSelectorRequirement
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