pub fn new(
        name: impl Into<Cow<'static, str>>,
        up: impl for<'future> Fn(
                &'future mut Transaction<DB>,
            ) -> LocalBoxFuture<'future, Result<(), MigrationError>>
            + 'static,
    ) -> Self {
        Self {
            name: name.into(),
            checksum: Cow::default(),
            up: Box::new(up),
            down: None,
        }
    }
/// Create a new migration with the given name
/// and migration function.
Create a new migration with the given name
and migration function.
Create a new migration with the given name and migration function .
pub fn new(
        name: impl Into<Cow<'static, str>>,
        up: impl for<'future> Fn(
                &'future mut Transaction<DB>,
            ) -> LocalBoxFuture<'future, Result<(), MigrationError>>
            + 'static,
    ) -> Self {
        Self {
            name: name.into(),
            checksum: Cow::default(),
            up: Box::new(up),
            down: None,
        }
    }
pub fn new ( name : impl Into < Cow < ' static , str > > , up : impl for < ' future > Fn ( & ' future mut Transaction < DB > , ) -> LocalBoxFuture < ' future , Result < ( ) , MigrationError > > + ' static , ) -> Self { Self { name : name . into ( ) , checksum : Cow :: default ( ) , up : Box :: new ( up ) , down : None , } }
Create a new migration with the given name
and migration function.
Create a new migration with the given name and migration function .
name
impl Into<Cow<'static, str>>
up
impl for<'future> Fn(
                &'future mut Transaction<DB>,
            ) -> LocalBoxFuture<'future, Result<(), MigrationError>>
            + 'static
name
impl Into<Cow<'static, str>>
up
impl for<'future> Fn(
                &'future mut Transaction<DB>,
            ) -> LocalBoxFuture<'future, Result<(), MigrationError>>
            + 'static