aboutsummaryrefslogtreecommitdiff
path: root/budget/src/lib.rs
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-10-06 00:18:37 +0300
committerYaroslav <contact@yaroslavps.com>2020-10-06 00:20:03 +0300
commitcc688c4dc73d3b13be5aba1bd292cc31265c5d04 (patch)
tree66a46e038ea2392600deba03f040b60a8fe7a565 /budget/src/lib.rs
parent408b0ac993496b108ec1e479151d549e9535051a (diff)
downloadfinbudg-be620c8dfa84c52985c8b4677dd6d8131c0e1f63.tar.gz
finbudg-be620c8dfa84c52985c8b4677dd6d8131c0e1f63.zip
Allow days with no expensesv0.1.1
Also fix "spelling" mistake in output ("..." instead of "..").
Diffstat (limited to 'budget/src/lib.rs')
-rw-r--r--budget/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/budget/src/lib.rs b/budget/src/lib.rs
index 4dab46a..e8bb8f3 100644
--- a/budget/src/lib.rs
+++ b/budget/src/lib.rs
@@ -22,6 +22,7 @@ pub struct Account {
pub struct Day {
#[serde(deserialize_with = "deserialize_date")]
pub date: NaiveDate,
+ #[serde(default)]
pub expenses: Vec<Expense>,
}