Trait Migration

Source
pub trait Migration {
    // Required methods
    fn name(&self) -> &'static str;
    fn up<'a>(
        &'a self,
        pool: &'a dyn AsyncPoolTrait<Connection>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>;
    fn down<'a>(
        &'a self,
        pool: &'a dyn AsyncPoolTrait<Connection>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn up<'a>( &'a self, pool: &'a dyn AsyncPoolTrait<Connection>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>

Source

fn down<'a>( &'a self, pool: &'a dyn AsyncPoolTrait<Connection>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>

Implementors§