#[non_exhaustive]pub struct FutureResourcesSpecLocalSsdPartition {
pub disk_interface: Option<DiskInterface>,
pub disk_size_gb: Option<i64>,
/* private fields */
}Available on crate feature
advice 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_interface: Option<DiskInterface>Disk interface. Defaults to SCSI.
disk_size_gb: Option<i64>The size of the disk in GB.
Implementations§
Source§impl FutureResourcesSpecLocalSsdPartition
impl FutureResourcesSpecLocalSsdPartition
pub fn new() -> Self
Sourcepub fn set_disk_interface<T>(self, v: T) -> Selfwhere
T: Into<DiskInterface>,
pub fn set_disk_interface<T>(self, v: T) -> Selfwhere
T: Into<DiskInterface>,
Sets the value of disk_interface.
§Example
ⓘ
use google_cloud_compute_v1::model::future_resources_spec_local_ssd_partition::DiskInterface;
let x0 = FutureResourcesSpecLocalSsdPartition::new().set_disk_interface(DiskInterface::Scsi);Sourcepub fn set_or_clear_disk_interface<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskInterface>,
pub fn set_or_clear_disk_interface<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiskInterface>,
Sets or clears the value of disk_interface.
§Example
ⓘ
use google_cloud_compute_v1::model::future_resources_spec_local_ssd_partition::DiskInterface;
let x0 = FutureResourcesSpecLocalSsdPartition::new().set_or_clear_disk_interface(Some(DiskInterface::Scsi));
let x_none = FutureResourcesSpecLocalSsdPartition::new().set_or_clear_disk_interface(None::<DiskInterface>);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 = FutureResourcesSpecLocalSsdPartition::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 = FutureResourcesSpecLocalSsdPartition::new().set_or_clear_disk_size_gb(Some(42));
let x = FutureResourcesSpecLocalSsdPartition::new().set_or_clear_disk_size_gb(None::<i32>);Trait Implementations§
Source§impl Clone for FutureResourcesSpecLocalSsdPartition
impl Clone for FutureResourcesSpecLocalSsdPartition
Source§fn clone(&self) -> FutureResourcesSpecLocalSsdPartition
fn clone(&self) -> FutureResourcesSpecLocalSsdPartition
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 FutureResourcesSpecLocalSsdPartition
impl Default for FutureResourcesSpecLocalSsdPartition
Source§fn default() -> FutureResourcesSpecLocalSsdPartition
fn default() -> FutureResourcesSpecLocalSsdPartition
Returns the “default value” for a type. Read more
Source§impl PartialEq for FutureResourcesSpecLocalSsdPartition
impl PartialEq for FutureResourcesSpecLocalSsdPartition
Source§fn eq(&self, other: &FutureResourcesSpecLocalSsdPartition) -> bool
fn eq(&self, other: &FutureResourcesSpecLocalSsdPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FutureResourcesSpecLocalSsdPartition
Auto Trait Implementations§
impl Freeze for FutureResourcesSpecLocalSsdPartition
impl RefUnwindSafe for FutureResourcesSpecLocalSsdPartition
impl Send for FutureResourcesSpecLocalSsdPartition
impl Sync for FutureResourcesSpecLocalSsdPartition
impl Unpin for FutureResourcesSpecLocalSsdPartition
impl UnwindSafe for FutureResourcesSpecLocalSsdPartition
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