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