pub struct PlatformConfig {
pub num_pci_segments: Option<i32>,
pub iommu_segments: Option<Vec<i32>>,
pub iommu_address_width: Option<i32>,
pub serial_number: Option<String>,
pub uuid: Option<String>,
pub oem_strings: Option<Vec<String>>,
pub tdx: Option<bool>,
pub sev_snp: Option<bool>,
}
Fields§
§num_pci_segments: Option<i32>
§iommu_segments: Option<Vec<i32>>
§iommu_address_width: Option<i32>
§serial_number: Option<String>
§uuid: Option<String>
§oem_strings: Option<Vec<String>>
§tdx: Option<bool>
§sev_snp: Option<bool>
Implementations§
Source§impl PlatformConfig
impl PlatformConfig
pub fn new() -> PlatformConfig
Trait Implementations§
Source§impl Clone for PlatformConfig
impl Clone for PlatformConfig
Source§fn clone(&self) -> PlatformConfig
fn clone(&self) -> PlatformConfig
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 Debug for PlatformConfig
impl Debug for PlatformConfig
Source§impl Default for PlatformConfig
impl Default for PlatformConfig
Source§fn default() -> PlatformConfig
fn default() -> PlatformConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlatformConfig
impl<'de> Deserialize<'de> for PlatformConfig
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 PlatformConfig
impl PartialEq for PlatformConfig
Source§impl Serialize for PlatformConfig
impl Serialize for PlatformConfig
impl StructuralPartialEq for PlatformConfig
Auto Trait Implementations§
impl Freeze for PlatformConfig
impl RefUnwindSafe for PlatformConfig
impl Send for PlatformConfig
impl Sync for PlatformConfig
impl Unpin for PlatformConfig
impl UnwindSafe for PlatformConfig
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