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 JsonSchema for TopologySelectorLabelRequirement
impl JsonSchema for TopologySelectorLabelRequirement
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for TopologySelectorLabelRequirement
impl PartialEq for TopologySelectorLabelRequirement
source§fn eq(&self, other: &TopologySelectorLabelRequirement) -> bool
fn eq(&self, other: &TopologySelectorLabelRequirement) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TopologySelectorLabelRequirement
Auto Trait Implementations§
impl Freeze for TopologySelectorLabelRequirement
impl RefUnwindSafe for TopologySelectorLabelRequirement
impl Send for TopologySelectorLabelRequirement
impl Sync for TopologySelectorLabelRequirement
impl Unpin for TopologySelectorLabelRequirement
impl UnwindSafe for TopologySelectorLabelRequirement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)