pub struct PveMetaConfig {
pub creation_qemu: Option<String>,
pub ctime: Option<i64>,
}Fields§
§creation_qemu: Option<String>The QEMU (machine) version from the time this VM was created.
ctime: Option<i64>The guest creation timestamp as UNIX epoch time
Implementations§
Source§impl PveMetaConfig
impl PveMetaConfig
pub fn new() -> PveMetaConfig
Source§impl PveMetaConfig
impl PveMetaConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveMetaConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveMetaConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveMetaConfig
impl Clone for PveMetaConfig
Source§fn clone(&self) -> PveMetaConfig
fn clone(&self) -> PveMetaConfig
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 PveMetaConfig
impl Debug for PveMetaConfig
Source§impl Default for PveMetaConfig
impl Default for PveMetaConfig
Source§fn default() -> PveMetaConfig
fn default() -> PveMetaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveMetaConfig
impl<'de> Deserialize<'de> for PveMetaConfig
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 PveMetaConfig
impl PartialEq for PveMetaConfig
Source§fn eq(&self, other: &PveMetaConfig) -> bool
fn eq(&self, other: &PveMetaConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveMetaConfig
impl Serialize for PveMetaConfig
impl StructuralPartialEq for PveMetaConfig
Auto Trait Implementations§
impl Freeze for PveMetaConfig
impl RefUnwindSafe for PveMetaConfig
impl Send for PveMetaConfig
impl Sync for PveMetaConfig
impl Unpin for PveMetaConfig
impl UnsafeUnpin for PveMetaConfig
impl UnwindSafe for PveMetaConfig
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