pub struct SnapshotSpec {
pub name: String,
pub group: Option<String>,
pub dest_dir: Option<PathBuf>,
pub source_sandbox: String,
pub labels: Vec<(String, String)>,
pub force: bool,
pub record_integrity: bool,
pub full: bool,
}Expand description
Inputs to create a snapshot.
Installed artifacts live at dest_dir/<group>/<snapshot_id>. A friendly name
is scoped to the group; it does not change the portable snapshot identity.
Save/load moves artifacts between stores without starting a VM.
Fields§
§name: StringFriendly member name within a group; empty selects a generated name.
group: Option<String>Local snapshot group; defaults to the source sandbox’s name.
dest_dir: Option<PathBuf>Group-store root. None selects the default snapshots directory.
source_sandbox: StringSource sandbox. Disk capture accepts running, paused, or stopped sources.
labels: Vec<(String, String)>User-supplied labels.
force: boolOverwrite a direct archive destination; installed members remain immutable.
record_integrity: boolCompute and record upper-layer content integrity at creation time.
full: boolCapture disk, memory, execution, and device state from a running sandbox.
Trait Implementations§
Source§impl Clone for SnapshotSpec
impl Clone for SnapshotSpec
Source§fn clone(&self) -> SnapshotSpec
fn clone(&self) -> SnapshotSpec
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 SnapshotSpec
impl Debug for SnapshotSpec
Source§impl<'de> Deserialize<'de> for SnapshotSpec
impl<'de> Deserialize<'de> for SnapshotSpec
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
Auto Trait Implementations§
impl Freeze for SnapshotSpec
impl RefUnwindSafe for SnapshotSpec
impl Send for SnapshotSpec
impl Sync for SnapshotSpec
impl Unpin for SnapshotSpec
impl UnsafeUnpin for SnapshotSpec
impl UnwindSafe for SnapshotSpec
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