#[non_exhaustive]pub struct InstanceSelectionResult {
pub machine_type: Option<String>,
pub vm_count: Option<i32>,
/* private fields */
}Expand description
Defines a mapping from machine types to the number of VMs that are created with each machine type.
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_type: Option<String>Output only. Full machine-type names, e.g. “n1-standard-16”.
vm_count: Option<i32>Output only. Number of VM provisioned with the machine_type.
Implementations§
Source§impl InstanceSelectionResult
impl InstanceSelectionResult
pub fn new() -> Self
Sourcepub fn set_machine_type<T>(self, v: T) -> Self
pub fn set_machine_type<T>(self, v: T) -> Self
Sets the value of machine_type.
Sourcepub fn set_or_clear_machine_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_machine_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of machine_type.
Sourcepub fn set_vm_count<T>(self, v: T) -> Self
pub fn set_vm_count<T>(self, v: T) -> Self
Sets the value of vm_count.
Trait Implementations§
Source§impl Clone for InstanceSelectionResult
impl Clone for InstanceSelectionResult
Source§fn clone(&self) -> InstanceSelectionResult
fn clone(&self) -> InstanceSelectionResult
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 InstanceSelectionResult
impl Debug for InstanceSelectionResult
Source§impl Default for InstanceSelectionResult
impl Default for InstanceSelectionResult
Source§fn default() -> InstanceSelectionResult
fn default() -> InstanceSelectionResult
Returns the “default value” for a type. Read more
Source§impl Message for InstanceSelectionResult
impl Message for InstanceSelectionResult
Source§impl PartialEq for InstanceSelectionResult
impl PartialEq for InstanceSelectionResult
impl StructuralPartialEq for InstanceSelectionResult
Auto Trait Implementations§
impl Freeze for InstanceSelectionResult
impl RefUnwindSafe for InstanceSelectionResult
impl Send for InstanceSelectionResult
impl Sync for InstanceSelectionResult
impl Unpin for InstanceSelectionResult
impl UnwindSafe for InstanceSelectionResult
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