Skip to main content

Module persistence

Module persistence 

Source
Expand description

Model state persistence via a versioned Snapshot envelope.

Only available when the serde feature is enabled.

Structs§

Snapshot
A versioned envelope around a serializable model state.

Constants§

MAX_SNAPSHOT_JSON_BYTES
Maximum byte length accepted by the validated restore entry points (from_json in Python/WASM bindings and [Snapshot::from_json_validated]).
SNAPSHOT_FORMAT_VERSION
The current snapshot format version.

Traits§

ValidateState
Unified state-validation interface for restorable model types.