#[non_exhaustive]pub struct DiskSpec {
pub boot_disk_type: String,
pub boot_disk_size_gb: i32,
/* private fields */
}Expand description
Represents the spec of disk options.
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.boot_disk_type: StringType of the boot disk (default is “pd-ssd”). Valid values: “pd-ssd” (Persistent Disk Solid State Drive) or “pd-standard” (Persistent Disk Hard Disk Drive).
boot_disk_size_gb: i32Size in GB of the boot disk (default is 100GB).
Implementations§
Source§impl DiskSpec
impl DiskSpec
pub fn new() -> Self
Sourcepub fn set_boot_disk_type<T: Into<String>>(self, v: T) -> Self
pub fn set_boot_disk_type<T: Into<String>>(self, v: T) -> Self
Sets the value of boot_disk_type.
Sourcepub fn set_boot_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
pub fn set_boot_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
Sets the value of boot_disk_size_gb.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskSpec
impl<'de> Deserialize<'de> for DiskSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DiskSpec
Auto Trait Implementations§
impl Freeze for DiskSpec
impl RefUnwindSafe for DiskSpec
impl Send for DiskSpec
impl Sync for DiskSpec
impl Unpin for DiskSpec
impl UnwindSafe for DiskSpec
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