pub fn create_new_config_file (settings : Settings) {
    let config_data = toml::to_string(&settings).unwrap();
    let mut new_file = File::create("config.toml").unwrap();
    write!(new_file, "{}", config_data).unwrap();
}
///Creates a new config file from a given Settings structure. 
Creates a new config file from a given Settings structure.
Creates a new config file from a given Settings structure .
pub fn create_new_config_file (settings : Settings) {
    let config_data = toml::to_string(&settings).unwrap();
    let mut new_file = File::create("config.toml").unwrap();
    write!(new_file, "{}", config_data).unwrap();
}
pub fn create_new_config_file ( settings : Settings ) { let config_data = toml :: to_string ( & settings ) . unwrap ( ) ; let mut new_file = File :: create ( " " ) . unwrap ( ) ; write ! ( new_file " " config_data ) . unwrap ( ) ; }
Creates a new config file from a given Settings structure.
Creates a new config file from a given Settings structure .
settings
Settings
settings
Settings