Struct migrant::Migrator
[−]
[src]
pub struct Migrator { /* fields omitted */ }
Migrator to configure how to run available migrations
Methods
impl Migrator
[src]
fn with_config(
config: &Config,
config_path: &PathBuf,
base_dir: &PathBuf
) -> Self
config: &Config,
config_path: &PathBuf,
base_dir: &PathBuf
) -> Self
fn direction(self, dir: Direction) -> Self
fn force(self, force: bool) -> Self
fn fake(self, fake: bool) -> Self
fn all(self, all: bool) -> Self
fn apply(self) -> Result<(), Error>
Trait Implementations
impl Debug for Migrator
[src]
impl Clone for Migrator
[src]
fn clone(&self) -> Migrator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more