Derive Macro aversion::UpgradeLatest[][src]

#[derive(UpgradeLatest)]
Expand description

Derive the UpgradeLatest trait on a struct.

It is assumed that all versions 1..N exist, i.e. if UpgradeLatest is implemented for FooV3, that FooV2 and FooV1 both exist and implement Versioned.

It is further assumed that a type alias Foo exists and is equivalent to the latest version. In other words: type Foo = FooV3