From d538536af8fa63d27a6180403c2e4618a3043118 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 22 Mar 2017 09:40:48 +0100 Subject: [PATCH] add default values to config struct --- src/models.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models.rs b/src/models.rs index e577f58..6f41c92 100644 --- a/src/models.rs +++ b/src/models.rs @@ -32,7 +32,9 @@ fn timestamp() -> i64 { #[derive(Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Config { + #[serde(default)] pub storage: String, + #[serde(default)] pub movie_storage: String, #[serde(default = "default_map")] pub games: HashMap,