pub struct InstancePost {
pub config: Option<Value>,
pub devices: Option<Value>,
pub profiles: Option<Vec<String>>,
pub allow_inconsistent: Option<bool>,
pub instance_only: Option<bool>,
pub live: Option<bool>,
pub migration: Option<bool>,
pub name: Option<String>,
pub pool: Option<String>,
pub project: Option<String>,
pub target: Option<Box<InstancePostTarget>>,
}Fields§
§config: Option<Value>Instance configuration file.
devices: Option<Value>Instance devices.
profiles: Option<Vec<String>>List of profiles applied to the instance.
allow_inconsistent: Option<bool>AllowInconsistent allow inconsistent copies when migrating.
instance_only: Option<bool>Whether snapshots should be discarded (migration only)
live: Option<bool>Whether to perform a live migration (migration only)
migration: Option<bool>Whether the instance is being migrated to another server
name: Option<String>New name for the instance
pool: Option<String>Target pool for local cross-pool move
project: Option<String>Target project for local cross-project move
target: Option<Box<InstancePostTarget>>Implementations§
Source§impl InstancePost
impl InstancePost
pub fn new() -> InstancePost
Trait Implementations§
Source§impl Clone for InstancePost
impl Clone for InstancePost
Source§fn clone(&self) -> InstancePost
fn clone(&self) -> InstancePost
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 InstancePost
impl Debug for InstancePost
Source§impl Default for InstancePost
impl Default for InstancePost
Source§fn default() -> InstancePost
fn default() -> InstancePost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstancePost
impl<'de> Deserialize<'de> for InstancePost
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 InstancePost
impl PartialEq for InstancePost
Source§fn eq(&self, other: &InstancePost) -> bool
fn eq(&self, other: &InstancePost) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstancePost
impl Serialize for InstancePost
impl StructuralPartialEq for InstancePost
Auto Trait Implementations§
impl Freeze for InstancePost
impl RefUnwindSafe for InstancePost
impl Send for InstancePost
impl Sync for InstancePost
impl Unpin for InstancePost
impl UnsafeUnpin for InstancePost
impl UnwindSafe for InstancePost
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