pub struct SnapshotMeta {Show 14 fields
pub id: String,
pub vm_id: String,
pub name: Option<String>,
pub labels: HashMap<String, String>,
pub snapshot_type: SnapshotType,
pub vmstate_path: PathBuf,
pub mem_path: Option<PathBuf>,
pub created_at: DateTime<Utc>,
pub parent_id: Option<String>,
pub kernel_path: Option<String>,
pub rootfs_path: Option<String>,
pub net_invariant: bool,
pub geometry: Option<SnapshotGeometry>,
pub format: String,
}Expand description
Metadata stored alongside each snapshot on disk.
Fields§
§id: StringUnique snapshot identifier.
vm_id: StringVM identifier this snapshot belongs to.
name: Option<String>Optional human-readable label.
labels: HashMap<String, String>Arbitrary key-value metadata, used for filtering in ListSnapshots.
serde(default) so snapshots catalogued before labels existed still
load (they read back as unlabelled).
snapshot_type: SnapshotType§vmstate_path: PathBufAbsolute path to the vmstate file.
mem_path: Option<PathBuf>Absolute path to the memory file (full snapshots only).
created_at: DateTime<Utc>When the snapshot was created.
parent_id: Option<String>Parent snapshot ID (diff chain).
kernel_path: Option<String>Host-absolute kernel path (required for jailer-mode restore staging).
rootfs_path: Option<String>Host-absolute rootfs path (required for jailer-mode restore staging).
net_invariant: boolWhether the origin guest ran the fixed invariant network identity
(CORE-81): eth0 on the constant link-local address with the constant
gateway, external identity applied host-side per TAP. A restore of such
a snapshot needs zero guest-side network work. serde(default) so
legacy snapshots read back false and keep the reconfig-RPC path.
geometry: Option<SnapshotGeometry>Capture-time VM geometry. serde(default) so legacy metas read back
None (consumers that need it reject with an actionable error).
format: StringThe checkpoint image’s on-disk format, named by the driver that
wrote it — a restore hands the image only to a driver that names the
same format. Defaults to LEGACY_FORMAT for entries catalogued
before the field existed.
Trait Implementations§
Source§impl Clone for SnapshotMeta
impl Clone for SnapshotMeta
Source§fn clone(&self) -> SnapshotMeta
fn clone(&self) -> SnapshotMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more