pub struct InstanceSnapshot {Show 14 fields
pub architecture: Option<String>,
pub config: Option<Value>,
pub created_at: Option<DateTime<FixedOffset>>,
pub description: Option<String>,
pub devices: Option<Value>,
pub ephemeral: Option<bool>,
pub expanded_config: Option<Value>,
pub expanded_devices: Option<Value>,
pub expires_at: Option<DateTime<FixedOffset>>,
pub last_used_at: Option<DateTime<FixedOffset>>,
pub name: Option<String>,
pub profiles: Option<Vec<String>>,
pub size: Option<i64>,
pub stateful: Option<bool>,
}Fields§
§architecture: Option<String>Architecture name
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)
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)
expires_at: Option<DateTime<FixedOffset>>When the snapshot expires (gets auto-deleted)
last_used_at: Option<DateTime<FixedOffset>>Last start timestamp
name: Option<String>Snapshot name
profiles: Option<Vec<String>>List of profiles applied to the instance
size: Option<i64>Size of the snapshot in bytes
stateful: Option<bool>Whether the instance currently has saved state on disk
Implementations§
Source§impl InstanceSnapshot
impl InstanceSnapshot
pub fn new() -> InstanceSnapshot
Trait Implementations§
Source§impl Clone for InstanceSnapshot
impl Clone for InstanceSnapshot
Source§fn clone(&self) -> InstanceSnapshot
fn clone(&self) -> InstanceSnapshot
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 InstanceSnapshot
impl Debug for InstanceSnapshot
Source§impl Default for InstanceSnapshot
impl Default for InstanceSnapshot
Source§fn default() -> InstanceSnapshot
fn default() -> InstanceSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceSnapshot
impl<'de> Deserialize<'de> for InstanceSnapshot
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 InstanceSnapshot
impl PartialEq for InstanceSnapshot
Source§fn eq(&self, other: &InstanceSnapshot) -> bool
fn eq(&self, other: &InstanceSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstanceSnapshot
impl Serialize for InstanceSnapshot
impl StructuralPartialEq for InstanceSnapshot
Auto Trait Implementations§
impl Freeze for InstanceSnapshot
impl RefUnwindSafe for InstanceSnapshot
impl Send for InstanceSnapshot
impl Sync for InstanceSnapshot
impl Unpin for InstanceSnapshot
impl UnsafeUnpin for InstanceSnapshot
impl UnwindSafe for InstanceSnapshot
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