pub struct PveMemoryConfig {
pub current: i64,
}Fields§
§current: i64Current amount of online RAM for the VM in MiB. This is the maximum available memory when you use the balloon device.
Implementations§
Source§impl PveMemoryConfig
impl PveMemoryConfig
pub fn new(current: i64) -> PveMemoryConfig
Source§impl PveMemoryConfig
impl PveMemoryConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveMemoryConfig 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: PveMemoryConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveMemoryConfig
impl Clone for PveMemoryConfig
Source§fn clone(&self) -> PveMemoryConfig
fn clone(&self) -> PveMemoryConfig
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 PveMemoryConfig
impl Debug for PveMemoryConfig
Source§impl Default for PveMemoryConfig
impl Default for PveMemoryConfig
Source§fn default() -> PveMemoryConfig
fn default() -> PveMemoryConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveMemoryConfig
impl<'de> Deserialize<'de> for PveMemoryConfig
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 PveMemoryConfig
impl PartialEq for PveMemoryConfig
Source§fn eq(&self, other: &PveMemoryConfig) -> bool
fn eq(&self, other: &PveMemoryConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveMemoryConfig
impl Serialize for PveMemoryConfig
impl StructuralPartialEq for PveMemoryConfig
Auto Trait Implementations§
impl Freeze for PveMemoryConfig
impl RefUnwindSafe for PveMemoryConfig
impl Send for PveMemoryConfig
impl Sync for PveMemoryConfig
impl Unpin for PveMemoryConfig
impl UnsafeUnpin for PveMemoryConfig
impl UnwindSafe for PveMemoryConfig
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