Struct k8s_openapi::api::core::v1::TopologySelectorLabelRequirement
source · pub struct TopologySelectorLabelRequirement {
pub key: String,
pub values: Vec<String>,
}
Expand description
A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
Fields§
§key: String
The label key that the selector applies to.
values: Vec<String>
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
Trait Implementations§
source§impl Clone for TopologySelectorLabelRequirement
impl Clone for TopologySelectorLabelRequirement
source§fn clone(&self) -> TopologySelectorLabelRequirement
fn clone(&self) -> TopologySelectorLabelRequirement
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 DeepMerge for TopologySelectorLabelRequirement
impl DeepMerge for TopologySelectorLabelRequirement
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for TopologySelectorLabelRequirement
impl Default for TopologySelectorLabelRequirement
source§fn default() -> TopologySelectorLabelRequirement
fn default() -> TopologySelectorLabelRequirement
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TopologySelectorLabelRequirement
impl<'de> Deserialize<'de> for TopologySelectorLabelRequirement
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<TopologySelectorLabelRequirement> for TopologySelectorLabelRequirement
impl PartialEq<TopologySelectorLabelRequirement> for TopologySelectorLabelRequirement
source§fn eq(&self, other: &TopologySelectorLabelRequirement) -> bool
fn eq(&self, other: &TopologySelectorLabelRequirement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.