pub enum SerializationGoal {
FastestLoad,
SmallestFileSize,
HumanReadableDebug,
LongTermStability,
EditorInterchange,
}Expand description
Defines the developer’s high-level intention for a serialization operation.
This enum is the core of the SAA-Serialize system’s public API. Instead of
specifying a format, the user specifies a goal, and the SerializationAgent
chooses the best strategy to achieve it.
Variants§
FastestLoad
Prioritizes the fastest possible loading time. This is the ideal choice for production game builds where loading screens must be minimized. The resulting file may be larger or unreadable.
SmallestFileSize
Prioritizes the smallest possible file size on disk. This is useful for network transfers, content patches, or game saves where storage space is a concern. Loading may be slower.
HumanReadableDebug
Prioritizes human-readability for debugging and version control. The output will be a text-based format (like RON) that can be easily inspected and diffed. This is the slowest option.
LongTermStability
Prioritizes long-term stability and forward compatibility. The format used will be decoupled from the engine’s internal memory layout, ensuring the scene file can be loaded by future versions of Khora.
EditorInterchange
Prioritizes a flexible, structured format suitable for editor operations, prefabs, and tool interchange.
Trait Implementations§
Source§impl Clone for SerializationGoal
impl Clone for SerializationGoal
Source§fn clone(&self) -> SerializationGoal
fn clone(&self) -> SerializationGoal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more