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 for NodeSelectorTerm
impl PartialEq 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 ==
.source§impl Serialize for NodeSelectorTerm
impl Serialize for NodeSelectorTerm
impl StructuralPartialEq for NodeSelectorTerm
Auto Trait Implementations§
impl Freeze for NodeSelectorTerm
impl RefUnwindSafe for NodeSelectorTerm
impl Send for NodeSelectorTerm
impl Sync for NodeSelectorTerm
impl Unpin for NodeSelectorTerm
impl UnwindSafe for NodeSelectorTerm
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