#[non_exhaustive]pub struct AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk {
pub disk_size_gb: Option<i64>,
pub interface: Option<Interface>,
/* private fields */
}Available on crate features
future-reservations or region-commitments or reservations 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.disk_size_gb: Option<i64>Specifies the size of the disk in base-2 GB.
interface: Option<Interface>Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance.
Implementations§
Source§impl AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
pub fn new() -> Self
Sourcepub fn set_disk_size_gb<T>(self, v: T) -> Self
pub fn set_disk_size_gb<T>(self, v: T) -> Self
Sets the value of disk_size_gb.
§Example
ⓘ
let x = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::new().set_disk_size_gb(42);Sourcepub fn set_or_clear_disk_size_gb<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_disk_size_gb<T>(self, v: Option<T>) -> Self
Sets or clears the value of disk_size_gb.
§Example
ⓘ
let x = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::new().set_or_clear_disk_size_gb(Some(42));
let x = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::new().set_or_clear_disk_size_gb(None::<i32>);Sourcepub fn set_interface<T>(self, v: T) -> Self
pub fn set_interface<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_interface<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interface<T>(self, v: Option<T>) -> Self
Sets or clears the value of interface.
§Example
ⓘ
use google_cloud_compute_v1::model::allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk::Interface;
let x0 = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::new().set_or_clear_interface(Some(Interface::Scsi));
let x_none = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::new().set_or_clear_interface(None::<Interface>);Trait Implementations§
Source§impl Clone for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl Clone for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Source§fn clone(
&self,
) -> AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
fn clone( &self, ) -> AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
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 AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl Default for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Source§fn default() -> AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
fn default() -> AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Returns the “default value” for a type. Read more
Source§impl PartialEq for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl PartialEq for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Source§fn eq(
&self,
other: &AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk,
) -> bool
fn eq( &self, other: &AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
Auto Trait Implementations§
impl Freeze for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl RefUnwindSafe for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl Send for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl Sync for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl Unpin for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
impl UnwindSafe for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk
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