pub struct WithMigrationsVec {
pub with_shell_config: Option<WithShellConfig>,
pub with_connection: WithConnection,
pub migrations: Vec<Box<dyn Migration>>,
}
Fields
with_shell_config: Option<WithShellConfig>
with_connection: WithConnection
migrations: Vec<Box<dyn Migration>>
Implementations
sourceimpl WithMigrationsVec
impl WithMigrationsVec
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
pub async fn up_single_from_vec(
&self,
migration_id: String
) -> Result<(), MigrationExecution>
Auto Trait Implementations
impl !RefUnwindSafe for WithMigrationsVec
impl !Send for WithMigrationsVec
impl Sync for WithMigrationsVec
impl Unpin for WithMigrationsVec
impl !UnwindSafe for WithMigrationsVec
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