#[non_exhaustive]pub struct InstanceSelection {
pub machine_types: Vec<String>,
pub rank: i32,
/* private fields */
}Expand description
Defines machines types and a rank to which the machines types belong.
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.machine_types: Vec<String>Optional. Full machine-type names, e.g. “n1-standard-16”.
rank: i32Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.
Implementations§
Source§impl InstanceSelection
impl InstanceSelection
pub fn new() -> Self
Sourcepub fn set_machine_types<T, V>(self, v: T) -> Self
pub fn set_machine_types<T, V>(self, v: T) -> Self
Sets the value of machine_types.
Trait Implementations§
Source§impl Clone for InstanceSelection
impl Clone for InstanceSelection
Source§fn clone(&self) -> InstanceSelection
fn clone(&self) -> InstanceSelection
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 InstanceSelection
impl Debug for InstanceSelection
Source§impl Default for InstanceSelection
impl Default for InstanceSelection
Source§fn default() -> InstanceSelection
fn default() -> InstanceSelection
Returns the “default value” for a type. Read more
Source§impl Message for InstanceSelection
impl Message for InstanceSelection
Source§impl PartialEq for InstanceSelection
impl PartialEq for InstanceSelection
impl StructuralPartialEq for InstanceSelection
Auto Trait Implementations§
impl Freeze for InstanceSelection
impl RefUnwindSafe for InstanceSelection
impl Send for InstanceSelection
impl Sync for InstanceSelection
impl Unpin for InstanceSelection
impl UnwindSafe for InstanceSelection
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