pub struct SnapshotInfo {
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>,
}Expand description
Info returned to callers / gRPC layer.
Fields§
§id: String§vm_id: String§name: Option<String>§labels: HashMap<String, String>Arbitrary key-value metadata recorded at checkpoint time.
snapshot_type: SnapshotType§vmstate_path: PathBuf§mem_path: Option<PathBuf>§created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for SnapshotInfo
impl Clone for SnapshotInfo
Source§fn clone(&self) -> SnapshotInfo
fn clone(&self) -> SnapshotInfo
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 SnapshotInfo
impl Debug for SnapshotInfo
Source§impl From<&SnapshotMeta> for SnapshotInfo
impl From<&SnapshotMeta> for SnapshotInfo
Source§fn from(m: &SnapshotMeta) -> SnapshotInfo
fn from(m: &SnapshotMeta) -> SnapshotInfo
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotInfo
impl RefUnwindSafe for SnapshotInfo
impl Send for SnapshotInfo
impl Sync for SnapshotInfo
impl Unpin for SnapshotInfo
impl UnsafeUnpin for SnapshotInfo
impl UnwindSafe for SnapshotInfo
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