#[non_exhaustive]pub struct SchedulingNodeAffinity {
pub key: String,
pub operator: Operator,
pub values: Vec<String>,
/* private fields */
}Expand description
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe label key of Node resource to reference.
operator: OperatorThe operator to use for the node resources specified in the values
parameter.
values: Vec<String>Corresponds to the label values of Node resource.
Implementations§
Source§impl SchedulingNodeAffinity
impl SchedulingNodeAffinity
Sourcepub fn set_operator<T: Into<Operator>>(self, v: T) -> Self
pub fn set_operator<T: Into<Operator>>(self, v: T) -> Self
Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SchedulingNodeAffinity
impl Clone for SchedulingNodeAffinity
Source§fn clone(&self) -> SchedulingNodeAffinity
fn clone(&self) -> SchedulingNodeAffinity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Message for SchedulingNodeAffinity
impl Message for SchedulingNodeAffinity
Source§impl PartialEq for SchedulingNodeAffinity
impl PartialEq for SchedulingNodeAffinity
Source§fn eq(&self, other: &SchedulingNodeAffinity) -> bool
fn eq(&self, other: &SchedulingNodeAffinity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchedulingNodeAffinity
Auto Trait Implementations§
impl Freeze for SchedulingNodeAffinity
impl RefUnwindSafe for SchedulingNodeAffinity
impl Send for SchedulingNodeAffinity
impl Sync for SchedulingNodeAffinity
impl Unpin for SchedulingNodeAffinity
impl UnsafeUnpin 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