config.rs 324 B

123456789101112131415
  1. pub struct Configuration {
  2. pub listen_port: u16,
  3. pub listen_addr: String,
  4. pub vcs_dir: String,
  5. }
  6. impl Configuration {
  7. pub fn default() -> Self {
  8. Configuration {
  9. listen_port: 8080,
  10. listen_addr: "127.0.0.1".to_owned(),
  11. vcs_dir: "vcs/".to_owned(),
  12. }
  13. }
  14. }