Struct mongodb_migrator::migrator::with_connection::WithConnection
source · [−]pub struct WithConnection {
pub db: Database,
}
Fields
db: Database
Implementations
sourceimpl WithConnection
impl WithConnection
pub fn with_migrations_vec(
self,
migrations: Vec<Box<dyn Migration>>
) -> WithMigrationsVec
pub fn with_shell_config(self, with_shell_config: ShellConfig) -> WithShellConfig
Trait Implementations
sourceimpl Clone for WithConnection
impl Clone for WithConnection
sourcefn clone(&self) -> WithConnection
fn clone(&self) -> WithConnection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WithConnection
impl Send for WithConnection
impl Sync for WithConnection
impl Unpin for WithConnection
impl !UnwindSafe for WithConnection
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