pub struct InstancePut {
pub architecture: Option<String>,
pub config: Option<Value>,
pub description: Option<String>,
pub devices: Option<Value>,
pub disk_only: Option<bool>,
pub ephemeral: Option<bool>,
pub profiles: Option<Vec<String>>,
pub restore: Option<String>,
pub stateful: Option<bool>,
}Fields§
§architecture: Option<String>Architecture name
config: Option<Value>Instance configuration (see doc/instances.md)
description: Option<String>Instance description
devices: Option<Value>Instance devices (see doc/instances.md)
disk_only: Option<bool>Whether only the instances disk should be restored
ephemeral: Option<bool>Whether the instance is ephemeral (deleted on shutdown)
profiles: Option<Vec<String>>List of profiles applied to the instance
restore: Option<String>If set, instance will be restored to the provided snapshot name
stateful: Option<bool>Whether the instance currently has saved state on disk
Implementations§
Source§impl InstancePut
impl InstancePut
pub fn new() -> InstancePut
Trait Implementations§
Source§impl Clone for InstancePut
impl Clone for InstancePut
Source§fn clone(&self) -> InstancePut
fn clone(&self) -> InstancePut
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 InstancePut
impl Debug for InstancePut
Source§impl Default for InstancePut
impl Default for InstancePut
Source§fn default() -> InstancePut
fn default() -> InstancePut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstancePut
impl<'de> Deserialize<'de> for InstancePut
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 InstancePut
impl PartialEq for InstancePut
Source§fn eq(&self, other: &InstancePut) -> bool
fn eq(&self, other: &InstancePut) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstancePut
impl Serialize for InstancePut
impl StructuralPartialEq for InstancePut
Auto Trait Implementations§
impl Freeze for InstancePut
impl RefUnwindSafe for InstancePut
impl Send for InstancePut
impl Sync for InstancePut
impl Unpin for InstancePut
impl UnsafeUnpin for InstancePut
impl UnwindSafe for InstancePut
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