Struct migrant_lib::ConfigInitializer
[−]
[src]
pub struct ConfigInitializer { /* fields omitted */ }
Project configuration/settings builder to initialize a new config file
Methods
impl ConfigInitializer
[src]
fn new(dir: &Path) -> Self
[src]
Start a new ConfigInitializer
fn for_database(self, db_type: Option<&str>) -> Result<Self>
[src]
Specify the database_type, checks whether the type is supported
fn interactive(self, b: bool) -> Self
[src]
Set interactive prompts, default is true
fn initialize(self) -> Result<()>
[src]
Generate a template config file using provided parameters or prompting the user.
If running interactively, the file will be opened for editing and Config::setup
will be run automatically.
Trait Implementations
impl Debug for ConfigInitializer
[src]
impl Clone for ConfigInitializer
[src]
fn clone(&self) -> ConfigInitializer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more