Expand description
Scene serialization — on-demand service backed by strategies from khora-data.
The SerializationStrategy trait and concrete implementations live in
khora_data::scene. This module provides the SerializationService that
orchestrates them for file I/O.
Structs§
- Archetype
Serialization Strategy - A serialization strategy that uses the “Archetype” strategy.
- Definition
Serialization Strategy - A serialization strategy that uses a stable, intermediate representation.
- Message
Pack Serialization Strategy - MessagePack-encoded
SceneRecipe. IdentifierKH_MESSAGEPACK_V1. - Recipe
Serialization Strategy - A serialization strategy that uses a sequence of commands (
SceneRecipe). - Scene
Migration Registration - Inventory entry for plugin-registered migrations.
- Serialization
Service - The serialization service.
Enums§
- Deserialization
Error - An error that can occur during the deserialization process.
- Migration
Error - Migration step failure. Wraps strategy-specific errors as text so the runner can keep its surface narrow.
- Serialization
Error - An error that can occur during the serialization process.
- Serialization
Service Error - An error that can occur within the
SerializationService.
Constants§
- CURRENT_
SCENE_ VERSION - Scene format version produced by today’s writers. Bumped whenever
the on-disk layout changes; older payloads run through registered
SceneMigrations on the way in.
Traits§
- Scene
Migration - One step of a scene-format migration. Receives the raw payload bytes emitted by the previous version’s strategy and returns the bytes the next version’s strategy expects.
- Serialization
Strategy - The abstract contract for a scene serialization strategy.
Functions§
- migrate_
payload - Apply registered migrations to bring
payloadfromfrom_versionup toto_version. Returns the (possibly unchanged) payload bytes.