pub struct CreateOptions {
pub name: String,
pub disk_size: String,
pub install_media: Option<PathBuf>,
pub memory_mib: u64,
pub vcpus: u16,
pub firmware: Firmware,
pub software_tpm2: bool,
}Expand description
Input for creating a new VM definition and system disk.
Fields§
§name: StringVM name.
disk_size: StringQEMU image size such as 64G.
install_media: Option<PathBuf>Optional installation ISO.
memory_mib: u64Guest memory in MiB.
vcpus: u16Virtual CPU count.
firmware: FirmwareGuest boot firmware.
software_tpm2: boolAttach a per-VM software TPM 2.0 device.
Trait Implementations§
Source§impl Clone for CreateOptions
impl Clone for CreateOptions
Auto Trait Implementations§
impl Forget for CreateOptions
impl Freeze for CreateOptions
impl Move for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptionswhere
RawVecInner: Send,
impl Sync for CreateOptionswhere
RawVecInner: Sync,
impl Unpin for CreateOptions
impl UnsafeUnpin for CreateOptions
impl UnwindSafe for CreateOptionswhere
RawVecInner: UnwindSafe,
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