Skip to main content

Module record

Module record 

Source
Expand description

Revisioned records, keys, and pagination. Revisioned state records, validated keys, and pagination.

StateKey separates a validated namespace from a namespace-local key. Write a StateRecord through crate::StateTransactionBackend and read a StateRecordSnapshot to observe its per-key revision. Listing uses literal prefixes and exclusive key cursors; multiple pages do not form a historical snapshot. JSON payload clones support caller-owned copy-on-write editing through Arc::make_mut, without publishing edits automatically.

Structsยง

StateKey
Fully qualified state-record key.
StateKeyPrefix
Validated key prefix for list requests.
StateListRequest
Key-ordered namespace list request.
StateListResponse
One page of observed records.
StateNamespace
Validated state namespace.
StateRecord
Caller-authored state record input.
StateRecordSnapshot
Observed record and its backend revision.
StateRevision
Positive monotonically increasing state revision.