pub struct SnapshotDraft {
pub name: Option<String>,
pub labels: HashMap<String, String>,
pub snapshot_type: SnapshotType,
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
What a caller knows about a snapshot before it is published.
The file layout (vmstate, mem) is the catalog’s business, so it is not
part of this: PendingSnapshot::commit fills those paths in.
Fields§
§name: Option<String>Optional human-readable label.
labels: HashMap<String, String>Arbitrary key-value metadata carried onto the snapshot.
snapshot_type: SnapshotType§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 restore to rebuild the dm-snapshot origin).
net_invariant: boolWhether the origin guest ran the invariant network identity (CORE-81).
geometry: Option<SnapshotGeometry>Capture-time VM geometry, when the producer knows it.
format: StringThe image format the producer wrote (see SnapshotMeta::format).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotDraft
impl RefUnwindSafe for SnapshotDraft
impl Send for SnapshotDraft
impl Sync for SnapshotDraft
impl Unpin for SnapshotDraft
impl UnsafeUnpin for SnapshotDraft
impl UnwindSafe for SnapshotDraft
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