add default values to config struct
This commit is contained in:
parent
88827749db
commit
d538536af8
@ -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<String, u64>,
|
||||
|
Loading…
Reference in New Issue
Block a user