# Snapshot

`import { Snapshot } from "destack:runtime";`

Snapshot state.

```ds title="Snapshot"
export struct Snapshot {
    id: SnapshotId;
    image: ImageId;
    format: SnapshotFormat;
    sizeBytes: uint64;
}
```

[language/library/src/runtime/snapshot.ds:19:28](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/snapshot.ds#L19-L28)

## Members

### `id: SnapshotId`

Snapshot identifier.

### `image: ImageId`

Backing image.

### `format: SnapshotFormat`

Snapshot export format.

### `sizeBytes: uint64`

Optional serialized size in bytes.
