feat: persist notes
This commit is contained in:
parent
3cc6e65fa4
commit
8036728152
2 changed files with 24 additions and 3 deletions
|
|
@ -1,5 +1,12 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// persistent data of the app; created when loading or saving
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
pub struct Saved {
|
||||
pub table: Table,
|
||||
pub notes: String,
|
||||
}
|
||||
|
||||
pub type Table = Vec<Category>;
|
||||
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue