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
sourceimpl Clone for NodeSelectorTerm
impl Clone for NodeSelectorTerm
sourcefn clone(&self) -> NodeSelectorTerm
fn clone(&self) -> NodeSelectorTerm
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodeSelectorTerm
impl Debug for NodeSelectorTerm
sourceimpl Default for NodeSelectorTerm
impl Default for NodeSelectorTerm
sourcefn default() -> NodeSelectorTerm
fn default() -> NodeSelectorTerm
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NodeSelectorTerm
impl<'de> Deserialize<'de> for NodeSelectorTerm
sourcefn 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
sourceimpl PartialEq<NodeSelectorTerm> for NodeSelectorTerm
impl PartialEq<NodeSelectorTerm> for NodeSelectorTerm
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NodeSelectorTerm) -> bool
fn ne(&self, other: &NodeSelectorTerm) -> bool
This method tests for !=
.
sourceimpl Serialize for NodeSelectorTerm
impl Serialize for NodeSelectorTerm
impl StructuralPartialEq for NodeSelectorTerm
Auto Trait Implementations
impl RefUnwindSafe for NodeSelectorTerm
impl Send for NodeSelectorTerm
impl Sync for NodeSelectorTerm
impl Unpin for NodeSelectorTerm
impl UnwindSafe for NodeSelectorTerm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more