add data w/ serde and RON
This commit is contained in:
parent
6fb5d40c1c
commit
0c8c0463d5
4 changed files with 45 additions and 7 deletions
9
src/data.rs
Normal file
9
src/data.rs
Normal 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>,
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
use iced::{Element, Renderer, Theme, widget};
|
||||
|
||||
mod data;
|
||||
|
||||
enum Message {}
|
||||
|
||||
struct State {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue