Module versioned_state

Source

Modules§

migrate_external_interface

Macros§

impl_versioned_state

Structs§

VersionedState

Enums§

MigrationChainError
MigrationError

Traits§

MigrateExternalInterface
Migrator
StateTransformer
StateVersion

Functions§

parse_one_or_many
Deserialize migrate_args as either a single migration (legacy wire shape, a JSON object) or an ordered list (a JSON array). A migration is JSON-tagged by from_version, so the first non-whitespace byte disambiguates: [ is a list, anything else a single object wrapped into a one-element chain. Keeps the pre-list wire format working unchanged.
read_state_version
run_migration_chain
Validate an ordered migration chain end-to-end, then run each step in sequence.
write_state_version