use std::fs;
use std::io::Write;
use std::path::{Path, PathBuf};
use toml;
use url::Url;

use crate::db::DbType;

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct Settings {
    pub bind: String,
    pub port: usize,
    #[serde(with = "url_serde")]