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 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