# `Decree.Store.Snapshots.SnapshotData`
[🔗](https://github.com/sparkle-space/decree/blob/v0.1.0/lib/decree/store/snapshots/snapshot_data.ex#L1)

Snapshot data.

`snapshot_version` names the row: the version of the snapshot's shape, one row per source
and version in `versioned_snapshots`. A nil `snapshot_version` is refused with
`{:error, :invalid_snapshot_version}`.

# `t`

```elixir
@type t() :: %Decree.Store.Snapshots.SnapshotData{
  created_at: DateTime.t(),
  data: binary(),
  metadata: binary(),
  snapshot_version: non_neg_integer() | nil,
  source_type: String.t(),
  source_uuid: String.t(),
  source_version: non_neg_integer()
}
```

# `deserialize`

# `serialize`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
