pub trait Upgrade<Target> {
// Required method
fn upgrade(self) -> Target;
}Expand description
A multi-hop migration from an older schema Self to a later one Target.
Where MigrateFrom is a single edge (V2 from V1), Upgrade is a whole
path (V1 all the way to V3). Implementations are generated by
migrate_chain! as the composition of single-hop MigrateFrom calls, so
every hop is type-checked and the whole walk inlines to zero runtime cost.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".