pub trait Versioned: Sized {
const CURRENT_VERSION: u8;
const CRDT_TYPE: CrdtType;
}Expand description
Trait for CRDT types that support versioned serialization.
Types implementing this trait can be serialized with a 3-byte version envelope, enabling automatic migration when data schemas change.
Required Associated Constants§
Sourceconst CURRENT_VERSION: u8
const CURRENT_VERSION: u8
Current schema version for this CRDT type’s serialization format.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".