1 2 3 4 5 6 7 8 9 10 11 12
mod mongodb; mod reference; #[async_trait] pub trait AbstractMigrations: Sync + Send { #[cfg(test)] /// Drop the database async fn drop_database(&self); /// Migrate the database async fn migrate_database(&self) -> Result<(), ()>; }