amethystate 0.9.2

Type-safe reactive persistence for Rust GUI apps
Documentation
1
2
3
4
5
6
7
8
use crate::MigrationContext;
use crate::store::StorageResult;

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

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