pub struct WithConnectionAndMigrationsVec {
pub with_connection: WithConnection,
pub migrations: Vec<Box<dyn Migration>>,
}
Fields
with_connection: WithConnection
migrations: Vec<Box<dyn Migration>>
Implementations
sourceimpl WithConnectionAndMigrationsVec
impl WithConnectionAndMigrationsVec
sourcepub async fn up(&self) -> Result<(), MigrationExecution>
pub async fn up(&self) -> Result<(), MigrationExecution>
This function executes all passed migrations in the passed order for migration in migrations createInProgressBson handleIfFailed saveInMongoAsInProgress handleIfResultWasntSaved up createFinishedBson handleIfFailed saveInMongoAsFinished handleIfResultWasntSaved returnIfMigrationUpWithFailedResultWithAllNextSavedAsFail
Auto Trait Implementations
impl !RefUnwindSafe for WithConnectionAndMigrationsVec
impl !Send for WithConnectionAndMigrationsVec
impl Sync for WithConnectionAndMigrationsVec
impl Unpin for WithConnectionAndMigrationsVec
impl !UnwindSafe for WithConnectionAndMigrationsVec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more