add data w/ serde and RON

This commit is contained in:
electria 2026-06-25 13:04:15 -07:00
commit 0c8c0463d5
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
4 changed files with 45 additions and 7 deletions

9
src/data.rs Normal file
View file

@ -0,0 +1,9 @@
use serde::{Deserialize, Serialize};
pub type Table = Vec<Category>;
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Category {
pub header: String,
pub elements: Vec<String>,
}

View file

@ -1,5 +1,7 @@
use iced::{Element, Renderer, Theme, widget};
mod data;
enum Message {}
struct State {}