#[non_exhaustive]pub struct InstancesSetMachineResourcesRequest {
pub guest_accelerators: Vec<AcceleratorConfig>,
/* private fields */
}Available on crate feature
instances only.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.guest_accelerators: Vec<AcceleratorConfig>A list of the type and count of accelerator cards attached to the instance.
Implementations§
Source§impl InstancesSetMachineResourcesRequest
impl InstancesSetMachineResourcesRequest
pub fn new() -> Self
Sourcepub fn set_guest_accelerators<T, V>(self, v: T) -> Self
pub fn set_guest_accelerators<T, V>(self, v: T) -> Self
Sets the value of guest_accelerators.
§Example
ⓘ
use google_cloud_compute_v1::model::AcceleratorConfig;
let x = InstancesSetMachineResourcesRequest::new()
.set_guest_accelerators([
AcceleratorConfig::default()/* use setters */,
AcceleratorConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InstancesSetMachineResourcesRequest
impl Clone for InstancesSetMachineResourcesRequest
Source§fn clone(&self) -> InstancesSetMachineResourcesRequest
fn clone(&self) -> InstancesSetMachineResourcesRequest
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 Default for InstancesSetMachineResourcesRequest
impl Default for InstancesSetMachineResourcesRequest
Source§fn default() -> InstancesSetMachineResourcesRequest
fn default() -> InstancesSetMachineResourcesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstancesSetMachineResourcesRequest
impl PartialEq for InstancesSetMachineResourcesRequest
Source§fn eq(&self, other: &InstancesSetMachineResourcesRequest) -> bool
fn eq(&self, other: &InstancesSetMachineResourcesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstancesSetMachineResourcesRequest
Auto Trait Implementations§
impl Freeze for InstancesSetMachineResourcesRequest
impl RefUnwindSafe for InstancesSetMachineResourcesRequest
impl Send for InstancesSetMachineResourcesRequest
impl Sync for InstancesSetMachineResourcesRequest
impl Unpin for InstancesSetMachineResourcesRequest
impl UnwindSafe for InstancesSetMachineResourcesRequest
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