Skip to main content

Module entity_snapshot

Module entity_snapshot 

Source
Expand description

Immutable entity snapshot — single-allocation property bag for change tracking.

Replaces HashMap<String, DbValue> as the return type of snapshot() and key_values(). Field names are &'static str (generated by the macro via string literals), eliminating per-call String key allocations. The inner Box<[T]> is a single heap allocation with no hash table overhead.

Structs§

EntitySnapshot
An immutable snapshot of an entity’s scalar property values.