feat: persist notes

This commit is contained in:
electria 2026-06-25 18:34:14 -07:00
commit 8036728152
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
2 changed files with 24 additions and 3 deletions

View file

@ -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)]