amethystate 0.23.0

A state manager for Rust applications
Documentation
1
2
3
4
5
6
7
use crate::MigrationContext;

pub trait MigrateFrom<TOld>: Sized {
    const RENAMES: &'static [(&'static str, &'static str)] = &[];

    fn migrate(old: TOld, ctx: &mut MigrationContext) -> crate::migration::StepResult<Self>;
}