pub struct GuestConfig {
pub firmware: GuestFirmwareConfig,
pub com1: bool,
pub com2: bool,
pub vmbus_redirection: bool,
pub enable_tpm: bool,
pub vtl2_settings: Option<Vec<u8>>,
pub secure_boot_enabled: bool,
pub secure_boot_template: SecureBootTemplateType,
pub enable_battery: bool,
pub no_persistent_secrets: bool,
}
Expand description
Settings to enable in the guest.
Fields§
§firmware: GuestFirmwareConfig
Firmware configuration.
com1: bool
Enable COM1 for VTL0 and the VMBUS redirector in VTL2.
com2: bool
Enable COM2 for VTL0 and the VMBUS redirector in VTL2.
vmbus_redirection: bool
Enable vmbus redirection.
enable_tpm: bool
Enable the TPM.
vtl2_settings: Option<Vec<u8>>
The encoded VTL2 settings document.
secure_boot_enabled: bool
Enable secure boot.
secure_boot_template: SecureBootTemplateType
Secure boot template to use.
enable_battery: bool
Enable battery.
no_persistent_secrets: bool
Suppress attestation.
Trait Implementations§
Source§impl Clone for GuestConfig
impl Clone for GuestConfig
Source§fn clone(&self) -> GuestConfig
fn clone(&self) -> GuestConfig
Returns a copy 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 Debug for GuestConfig
impl Debug for GuestConfig
Auto Trait Implementations§
impl Freeze for GuestConfig
impl RefUnwindSafe for GuestConfig
impl Send for GuestConfig
impl Sync for GuestConfig
impl Unpin for GuestConfig
impl UnwindSafe for GuestConfig
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