pub struct SnapshotSpec {
pub name: String,
pub dest_dir: Option<PathBuf>,
pub source_sandbox: String,
pub labels: Vec<(String, String)>,
pub force: bool,
pub record_integrity: bool,
pub resumable: bool,
}Expand description
Inputs to create a snapshot.
The snapshot’s name is its identity; the artifact directory is
dest_dir.join(name), with dest_dir defaulting to the snapshots
store. Archive movement happens through save/load (the artifact
directory is also self-contained and safe to move directly).
Fields§
§name: StringSnapshot name. Always the artifact directory’s basename.
dest_dir: Option<PathBuf>Parent directory to create the artifact in. None = the default
snapshots directory.
source_sandbox: StringName of the source sandbox. Must be stopped.
labels: Vec<(String, String)>User-supplied labels.
force: boolOverwrite an existing artifact at the destination.
record_integrity: boolCompute and record upper-layer content integrity at creation time.
resumable: boolRequest a future resumable snapshot that includes memory/device state.
This is part of the public contract now so callers can validate shape early. The local runtime returns an unsupported-feature error until VM pause/resume capture lands.
Trait Implementations§
Source§impl Clone for SnapshotSpec
impl Clone for SnapshotSpec
Source§fn clone(&self) -> SnapshotSpec
fn clone(&self) -> SnapshotSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more