firecracker_rs_sdk/models/
snapshot_create_params.rs1use std::path::PathBuf;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Serialize, Deserialize, Debug, Clone)]
6pub struct SnapshotCreateParams {
7 #[serde(rename = "mem_file_path")]
10 pub mem_file_path: PathBuf,
11
12 #[serde(rename = "snapshot_path")]
15 pub snapshot_path: PathBuf,
16
17 #[serde(rename = "snapshot_type", skip_serializing_if = "Option::is_none")]
20 pub snapshot_type: Option<SnapshotType>,
21
22 #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
25 pub version: Option<String>,
26}
27
28#[derive(Debug, Clone, Copy, Deserialize, Serialize, Default)]
29pub enum SnapshotType {
30 #[default]
31 #[serde(rename = "Full")]
32 Full,
33 #[serde(rename = "Diff")]
34 Diff,
35}