Trait Migration
Source pub trait Migration<T: DatabaseConnection>: Send + Sync {
// Required methods
fn up<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn down<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_name(&self) -> String;
}