pub struct InstancesPost {Show 14 fields
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 instance_type: Option<String>,
pub name: Option<String>,
pub profiles: Option<Vec<String>>,
pub restore: Option<String>,
pub source: Option<Box<InstanceSource>>,
pub start: Option<bool>,
pub stateful: Option<bool>,
pub type: Option<String>,
}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)
instance_type: Option<String>Cloud instance type (AWS, GCP, Azure, …) to emulate with limits
name: Option<String>Instance name
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
source: Option<Box<InstanceSource>>§start: Option<bool>Whether to start the instance after creation
stateful: Option<bool>Whether the instance currently has saved state on disk
type: Option<String>Implementations§
Source§impl InstancesPost
impl InstancesPost
pub fn new() -> InstancesPost
Trait Implementations§
Source§impl Clone for InstancesPost
impl Clone for InstancesPost
Source§fn clone(&self) -> InstancesPost
fn clone(&self) -> InstancesPost
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 InstancesPost
impl Debug for InstancesPost
Source§impl Default for InstancesPost
impl Default for InstancesPost
Source§fn default() -> InstancesPost
fn default() -> InstancesPost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstancesPost
impl<'de> Deserialize<'de> for InstancesPost
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 InstancesPost
impl PartialEq for InstancesPost
Source§fn eq(&self, other: &InstancesPost) -> bool
fn eq(&self, other: &InstancesPost) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstancesPost
impl Serialize for InstancesPost
impl StructuralPartialEq for InstancesPost
Auto Trait Implementations§
impl Freeze for InstancesPost
impl RefUnwindSafe for InstancesPost
impl Send for InstancesPost
impl Sync for InstancesPost
impl Unpin for InstancesPost
impl UnsafeUnpin for InstancesPost
impl UnwindSafe for InstancesPost
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