Struct migrant::Config
[−]
[src]
pub struct Config {
pub path: PathBuf,
// some fields omitted
}Project configuration/settings
Fields
path: PathBuf
Methods
impl Config[src]
fn load(path: &PathBuf) -> Result<Config, Error>
Load .migrant.toml config file from the given path
fn reload(&self) -> Result<Config, Error>
Reload configuration file
fn init(dir: &PathBuf) -> Result<Config, Error>
Initialize project in the given directory
Trait Implementations
impl Debug for Config[src]
impl Clone for Config[src]
fn clone(&self) -> Config
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