Struct k8s_openapi::api::core::v1::NodeSelectorTerm
source · pub struct NodeSelectorTerm {
pub match_expressions: Option<Vec<NodeSelectorRequirement>>,
pub match_fields: Option<Vec<NodeSelectorRequirement>>,
}
Expand description
A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
Fields§
§match_expressions: Option<Vec<NodeSelectorRequirement>>
A list of node selector requirements by node’s labels.
match_fields: Option<Vec<NodeSelectorRequirement>>
A list of node selector requirements by node’s fields.
Trait Implementations§
source§impl Clone for NodeSelectorTerm
impl Clone for NodeSelectorTerm
source§fn clone(&self) -> NodeSelectorTerm
fn clone(&self) -> NodeSelectorTerm
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 Debug for NodeSelectorTerm
impl Debug for NodeSelectorTerm
source§impl DeepMerge for NodeSelectorTerm
impl DeepMerge for NodeSelectorTerm
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NodeSelectorTerm
impl Default for NodeSelectorTerm
source§fn default() -> NodeSelectorTerm
fn default() -> NodeSelectorTerm
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NodeSelectorTerm
impl<'de> Deserialize<'de> for NodeSelectorTerm
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<NodeSelectorTerm> for NodeSelectorTerm
impl PartialEq<NodeSelectorTerm> for NodeSelectorTerm
source§fn eq(&self, other: &NodeSelectorTerm) -> bool
fn eq(&self, other: &NodeSelectorTerm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.