Struct google_compute1::api::SchedulingNodeAffinity
source · pub struct SchedulingNodeAffinity {
pub key: Option<String>,
pub operator: Option<String>,
pub values: Option<Vec<String>>,
}
Expand description
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>
Corresponds to the label key of Node resource.
operator: Option<String>
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
values: Option<Vec<String>>
Corresponds to the label values of Node resource.
Trait Implementations§
source§impl Clone for SchedulingNodeAffinity
impl Clone for SchedulingNodeAffinity
source§fn clone(&self) -> SchedulingNodeAffinity
fn clone(&self) -> SchedulingNodeAffinity
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 SchedulingNodeAffinity
impl Debug for SchedulingNodeAffinity
source§impl Default for SchedulingNodeAffinity
impl Default for SchedulingNodeAffinity
source§fn default() -> SchedulingNodeAffinity
fn default() -> SchedulingNodeAffinity
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchedulingNodeAffinity
impl<'de> Deserialize<'de> for SchedulingNodeAffinity
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 Serialize for SchedulingNodeAffinity
impl Serialize for SchedulingNodeAffinity
impl Part for SchedulingNodeAffinity
Auto Trait Implementations§
impl RefUnwindSafe for SchedulingNodeAffinity
impl Send for SchedulingNodeAffinity
impl Sync for SchedulingNodeAffinity
impl Unpin for SchedulingNodeAffinity
impl UnwindSafe for SchedulingNodeAffinity
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