pub struct InstanceFull {Show 22 fields
pub architecture: Option<String>,
pub backups: Option<Vec<InstanceBackup>>,
pub config: Option<Value>,
pub created_at: Option<DateTime<FixedOffset>>,
pub description: Option<String>,
pub devices: Option<Value>,
pub disk_only: Option<bool>,
pub ephemeral: Option<bool>,
pub expanded_config: Option<Value>,
pub expanded_devices: Option<Value>,
pub last_used_at: Option<DateTime<FixedOffset>>,
pub location: Option<String>,
pub name: Option<String>,
pub profiles: Option<Vec<String>>,
pub project: Option<String>,
pub restore: Option<String>,
pub snapshots: Option<Vec<InstanceSnapshot>>,
pub state: Option<Box<InstanceState>>,
pub stateful: Option<bool>,
pub status: Option<String>,
pub status_code: Option<i64>,
pub type: Option<String>,
}Fields§
§architecture: Option<String>Architecture name
backups: Option<Vec<InstanceBackup>>List of backups.
config: Option<Value>Instance configuration (see doc/instances.md)
created_at: Option<DateTime<FixedOffset>>Instance creation timestamp
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)
expanded_config: Option<Value>Expanded configuration (all profiles and local config merged)
expanded_devices: Option<Value>Expanded devices (all profiles and local devices merged)
last_used_at: Option<DateTime<FixedOffset>>Last start timestamp
location: Option<String>What cluster member this instance is located on
name: Option<String>Instance name
profiles: Option<Vec<String>>List of profiles applied to the instance
project: Option<String>Instance project name
restore: Option<String>If set, instance will be restored to the provided snapshot name
snapshots: Option<Vec<InstanceSnapshot>>List of snapshots.
state: Option<Box<InstanceState>>§stateful: Option<bool>Whether the instance currently has saved state on disk
status: Option<String>Instance status (see instance_state)
status_code: Option<i64>§type: Option<String>The type of instance (container or virtual-machine)
Implementations§
Source§impl InstanceFull
impl InstanceFull
pub fn new() -> InstanceFull
Trait Implementations§
Source§impl Clone for InstanceFull
impl Clone for InstanceFull
Source§fn clone(&self) -> InstanceFull
fn clone(&self) -> InstanceFull
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 InstanceFull
impl Debug for InstanceFull
Source§impl Default for InstanceFull
impl Default for InstanceFull
Source§fn default() -> InstanceFull
fn default() -> InstanceFull
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceFull
impl<'de> Deserialize<'de> for InstanceFull
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 InstanceFull
impl PartialEq for InstanceFull
Source§fn eq(&self, other: &InstanceFull) -> bool
fn eq(&self, other: &InstanceFull) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstanceFull
impl Serialize for InstanceFull
impl StructuralPartialEq for InstanceFull
Auto Trait Implementations§
impl Freeze for InstanceFull
impl RefUnwindSafe for InstanceFull
impl Send for InstanceFull
impl Sync for InstanceFull
impl Unpin for InstanceFull
impl UnsafeUnpin for InstanceFull
impl UnwindSafe for InstanceFull
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