pub struct PveMachineConfig {
pub aw_bits: Option<f64>,
pub enable_s3: Option<PveBoolean>,
pub enable_s4: Option<PveBoolean>,
pub type: Option<String>,
pub viommu: Option<PveViommuEnum>,
}Fields§
§aw_bits: Option<f64>Specifies the vIOMMU address space bit width. Intel vIOMMU supports a bit width of either 39 or 48 bits and VirtIO vIOMMU supports any bit width between 32 and 64 bits.
enable_s3: Option<PveBoolean>Enables S3 power state. Defaults to false beginning with machine types 9.2+pve1, true before.
enable_s4: Option<PveBoolean>Enables S4 power state. Defaults to false beginning with machine types 9.2+pve1, true before.
type: Option<String>Specifies the QEMU machine type.
viommu: Option<PveViommuEnum>Enable and set guest vIOMMU variant (Intel vIOMMU needs q35 to be set as machine type).
Implementations§
Source§impl PveMachineConfig
impl PveMachineConfig
pub fn new() -> PveMachineConfig
Source§impl PveMachineConfig
impl PveMachineConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveMachineConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveMachineConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveMachineConfig
impl Clone for PveMachineConfig
Source§fn clone(&self) -> PveMachineConfig
fn clone(&self) -> PveMachineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveMachineConfig
impl Debug for PveMachineConfig
Source§impl Default for PveMachineConfig
impl Default for PveMachineConfig
Source§fn default() -> PveMachineConfig
fn default() -> PveMachineConfig
Source§impl<'de> Deserialize<'de> for PveMachineConfig
impl<'de> Deserialize<'de> for PveMachineConfig
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>,
Source§impl PartialEq for PveMachineConfig
impl PartialEq for PveMachineConfig
Source§fn eq(&self, other: &PveMachineConfig) -> bool
fn eq(&self, other: &PveMachineConfig) -> bool
self and other values to be equal, and is used by ==.