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. +structType=atomic
Fields§
§match_expressions: Option<Vec<NodeSelectorRequirement>>A list of node selector requirements by node’s labels. +optional
match_fields: Option<Vec<NodeSelectorRequirement>>A list of node selector requirements by node’s fields. +optional
Implementations§
Source§impl NodeSelectorTerm
impl NodeSelectorTerm
pub fn new() -> NodeSelectorTerm
Trait Implementations§
Source§impl Clone for NodeSelectorTerm
impl Clone for NodeSelectorTerm
Source§fn clone(&self) -> NodeSelectorTerm
fn clone(&self) -> NodeSelectorTerm
Returns a duplicate 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<'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 FromStr for NodeSelectorTerm
Converts Query Parameters representation (style=form, explode=false) to a NodeSelectorTerm value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for NodeSelectorTerm
Converts Query Parameters representation (style=form, explode=false) to a NodeSelectorTerm value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for NodeSelectorTerm
impl PartialEq for NodeSelectorTerm
Source§impl Serialize for NodeSelectorTerm
impl Serialize for NodeSelectorTerm
Source§impl ToString for NodeSelectorTerm
Converts the NodeSelectorTerm value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for NodeSelectorTerm
Converts the NodeSelectorTerm value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for NodeSelectorTerm
impl Validate for NodeSelectorTerm
Source§impl<'v_a> ValidateArgs<'v_a> for NodeSelectorTerm
impl<'v_a> ValidateArgs<'v_a> 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