use std::path::PathBuf; mod model; fn main() { // let post = Post::new(Transaction { // description: "Test".to_string(), // category: "Mat".to_string(), // amount: Decimal::try_from(120.4_f64).unwrap(), // kind: TransactionKind::Expense, // from: "Kortkonto".to_string(), // to: "Coop Lambohov".to_string(), // }); // post.write(&"test").unwrap(); let store = model::Store::open(PathBuf::from("store")).unwrap(); // println!("{:#?}", store); store.write().unwrap(); }