pub struct Configuration { pub listen_port: u16, pub listen_addr: String, pub vcs_dir: String, } impl Configuration { pub fn default() -> Self { Configuration { listen_port: 8080, listen_addr: "127.0.0.1".to_owned(), vcs_dir: "vcs/".to_owned(), } } }