pub struct SnapshotInfo {Show 14 fields
pub id: String,
pub name: String,
pub machine_id: String,
pub machine_name: String,
pub kind: String,
pub image: String,
pub path: String,
pub parent: Option<String>,
pub description: String,
pub cpus: u32,
pub mem: u64,
pub ports: Vec<PortForward>,
pub size: Option<String>,
pub created_at: i64,
}Expand description
A machine snapshot: one machine’s disk state, captured under a name.
A copy-on-write clone rather than a memory image — the files the guest
wrote, not what it was executing. crate::Client::branch boots a new
machine from one; crate::Client::restore puts one back.
Fields§
§id: String§name: String§machine_id: String§machine_name: StringThe machine’s name when the snapshot was taken; empty if it had none.
kind: Stringlinux / freebsd / netbsd / unikraft.
image: String§path: String§parent: Option<String>The snapshot the source machine was itself branched from, if any.
description: String§cpus: u32§mem: u64§ports: Vec<PortForward>§size: Option<String>Human-readable, when measured — a CoW clone costs nothing to take.
created_at: i64Implementations§
Source§impl SnapshotInfo
impl SnapshotInfo
Sourcepub fn from_graphql(s: &Value) -> SnapshotInfo
pub fn from_graphql(s: &Value) -> SnapshotInfo
Build from a GraphQL Snapshot (camelCase).
Sourcepub fn from_row(row: &Value) -> SnapshotInfo
pub fn from_row(row: &Value) -> SnapshotInfo
Build from a CLI snapshots --json row (snake_case).
Trait Implementations§
Source§impl Clone for SnapshotInfo
impl Clone for SnapshotInfo
Source§fn clone(&self) -> SnapshotInfo
fn clone(&self) -> SnapshotInfo
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 SnapshotInfo
impl Debug for SnapshotInfo
Source§impl PartialEq for SnapshotInfo
impl PartialEq for SnapshotInfo
impl StructuralPartialEq for SnapshotInfo
Auto Trait Implementations§
impl Freeze for SnapshotInfo
impl RefUnwindSafe for SnapshotInfo
impl Send for SnapshotInfo
impl Sync for SnapshotInfo
impl Unpin for SnapshotInfo
impl UnsafeUnpin for SnapshotInfo
impl UnwindSafe for SnapshotInfo
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