pub struct RawMachineConfigPatch {
pub vcpu_count: Option<u32>,
pub mem_size_mib: Option<u64>,
pub smt: Option<bool>,
pub track_dirty_pages: Option<bool>,
pub cpu_template: Option<String>,
pub huge_pages: Option<String>,
}Expand description
Raw shape of the /machine-config PATCH body — every field optional.
Fields§
§vcpu_count: Option<u32>New vCPU count.
mem_size_mib: Option<u64>New RAM size in MiB.
smt: Option<bool>SMT toggle (must remain false on aarch64).
track_dirty_pages: Option<bool>Toggle dirty-page tracking.
cpu_template: Option<String>Replacement CPU template.
huge_pages: Option<String>Replacement huge-pages setting.
Trait Implementations§
Source§impl Clone for RawMachineConfigPatch
impl Clone for RawMachineConfigPatch
Source§fn clone(&self) -> RawMachineConfigPatch
fn clone(&self) -> RawMachineConfigPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawMachineConfigPatch
impl Debug for RawMachineConfigPatch
Source§impl<'de> Deserialize<'de> for RawMachineConfigPatch
impl<'de> Deserialize<'de> for RawMachineConfigPatch
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
Auto Trait Implementations§
impl Freeze for RawMachineConfigPatch
impl RefUnwindSafe for RawMachineConfigPatch
impl Send for RawMachineConfigPatch
impl Sync for RawMachineConfigPatch
impl Unpin for RawMachineConfigPatch
impl UnsafeUnpin for RawMachineConfigPatch
impl UnwindSafe for RawMachineConfigPatch
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