pub struct NodesCapabilitiesGetCpuResponseDataInner {
pub abstract: Option<PveBoolean>,
pub custom: PveBoolean,
pub name: String,
pub vendor: String,
}Fields§
§abstract: Option<PveBoolean>True for PVE-internal abstract profiles like x86-64-v2, -v3, -v4. These do not correspond to a QEMU CPU type and cannot be used as a custom model’s ‘reported-model’.
custom: PveBooleanTrue if this is a custom CPU model.
name: StringName of the CPU model. Identifies it for subsequent API calls. Prefixed with ‘custom-’ for custom models.
vendor: StringCPU vendor visible to the guest when this model is selected. Vendor of ‘reported-model’ in case of custom models.
Implementations§
Source§impl NodesCapabilitiesGetCpuResponseDataInner
impl NodesCapabilitiesGetCpuResponseDataInner
pub fn new( custom: PveBoolean, name: String, vendor: String, ) -> NodesCapabilitiesGetCpuResponseDataInner
Trait Implementations§
Source§impl Clone for NodesCapabilitiesGetCpuResponseDataInner
impl Clone for NodesCapabilitiesGetCpuResponseDataInner
Source§fn clone(&self) -> NodesCapabilitiesGetCpuResponseDataInner
fn clone(&self) -> NodesCapabilitiesGetCpuResponseDataInner
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 Default for NodesCapabilitiesGetCpuResponseDataInner
impl Default for NodesCapabilitiesGetCpuResponseDataInner
Source§fn default() -> NodesCapabilitiesGetCpuResponseDataInner
fn default() -> NodesCapabilitiesGetCpuResponseDataInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodesCapabilitiesGetCpuResponseDataInner
impl<'de> Deserialize<'de> for NodesCapabilitiesGetCpuResponseDataInner
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 NodesCapabilitiesGetCpuResponseDataInner
impl PartialEq for NodesCapabilitiesGetCpuResponseDataInner
Source§fn eq(&self, other: &NodesCapabilitiesGetCpuResponseDataInner) -> bool
fn eq(&self, other: &NodesCapabilitiesGetCpuResponseDataInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodesCapabilitiesGetCpuResponseDataInner
Auto Trait Implementations§
impl Freeze for NodesCapabilitiesGetCpuResponseDataInner
impl RefUnwindSafe for NodesCapabilitiesGetCpuResponseDataInner
impl Send for NodesCapabilitiesGetCpuResponseDataInner
impl Sync for NodesCapabilitiesGetCpuResponseDataInner
impl Unpin for NodesCapabilitiesGetCpuResponseDataInner
impl UnsafeUnpin for NodesCapabilitiesGetCpuResponseDataInner
impl UnwindSafe for NodesCapabilitiesGetCpuResponseDataInner
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