pub struct CloudStackMachineConfigDiskOffering {
pub custom_size_in_gb: Option<i64>,
pub device: String,
pub filesystem: String,
pub id: Option<String>,
pub label: String,
pub mount_path: String,
pub name: Option<String>,
}Expand description
DiskOffering refers to a disk offering which has been previously registered in CloudStack. It represents a disk offering with pre-defined size or custom specified disk size. It can either be specified as a UUID or name
Fields§
§custom_size_in_gb: Option<i64>disk size in GB, > 0 for customized disk offering; = 0 for non-customized disk offering
device: Stringdevice name of the disk offering in VM, shows up in lsblk command
filesystem: Stringfilesystem used to mkfs in disk offering partition
id: Option<String>Id of a resource in the CloudStack environment. Mutually exclusive with Name
label: Stringdisk label used to label disk partition
mount_path: Stringpath the filesystem will use to mount in VM
name: Option<String>Name of a resource in the CloudStack environment. Mutually exclusive with Id
Trait Implementations§
Source§impl Clone for CloudStackMachineConfigDiskOffering
impl Clone for CloudStackMachineConfigDiskOffering
Source§fn clone(&self) -> CloudStackMachineConfigDiskOffering
fn clone(&self) -> CloudStackMachineConfigDiskOffering
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 CloudStackMachineConfigDiskOffering
impl Default for CloudStackMachineConfigDiskOffering
Source§fn default() -> CloudStackMachineConfigDiskOffering
fn default() -> CloudStackMachineConfigDiskOffering
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudStackMachineConfigDiskOffering
impl<'de> Deserialize<'de> for CloudStackMachineConfigDiskOffering
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
Source§impl PartialEq for CloudStackMachineConfigDiskOffering
impl PartialEq for CloudStackMachineConfigDiskOffering
Source§fn eq(&self, other: &CloudStackMachineConfigDiskOffering) -> bool
fn eq(&self, other: &CloudStackMachineConfigDiskOffering) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CloudStackMachineConfigDiskOffering
Auto Trait Implementations§
impl Freeze for CloudStackMachineConfigDiskOffering
impl RefUnwindSafe for CloudStackMachineConfigDiskOffering
impl Send for CloudStackMachineConfigDiskOffering
impl Sync for CloudStackMachineConfigDiskOffering
impl Unpin for CloudStackMachineConfigDiskOffering
impl UnwindSafe for CloudStackMachineConfigDiskOffering
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