reorganize fields in config

This commit is contained in:
Abraham Toriz 2021-08-14 11:14:45 -05:00
parent 23a3603628
commit 8783df7c37
1 changed files with 3 additions and 3 deletions

View File

@ -44,9 +44,6 @@ pub struct Config {
#[serde(skip)]
pub path: Option<PathBuf>,
#[serde(flatten)]
pub extra: HashMap<String, serde_json::Value>,
/// Absolute path to the sqlite database
pub database_file: PathBuf, // "/home/user/.timetrap.db"
@ -85,6 +82,9 @@ pub struct Config {
/// The day of the week to use as the start of the week for t week.
pub week_start: WeekDay, // Monday
#[serde(flatten)]
pub extra: HashMap<String, serde_json::Value>,
}
impl Config {