reorganize fields in config
This commit is contained in:
parent
23a3603628
commit
8783df7c37
|
@ -44,9 +44,6 @@ pub struct Config {
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
pub path: Option<PathBuf>,
|
pub path: Option<PathBuf>,
|
||||||
|
|
||||||
#[serde(flatten)]
|
|
||||||
pub extra: HashMap<String, serde_json::Value>,
|
|
||||||
|
|
||||||
/// Absolute path to the sqlite database
|
/// Absolute path to the sqlite database
|
||||||
pub database_file: PathBuf, // "/home/user/.timetrap.db"
|
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.
|
/// The day of the week to use as the start of the week for t week.
|
||||||
pub week_start: WeekDay, // Monday
|
pub week_start: WeekDay, // Monday
|
||||||
|
|
||||||
|
#[serde(flatten)]
|
||||||
|
pub extra: HashMap<String, serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
|
|
Loading…
Reference in New Issue