Files
inkopslista/lib/src/lib.rs
T
ide 22cf928852 Add automatic generation of favourite buttons
favourite buttons are based on how often a good i added to list
finished implementing setting category
made number of days until button an environment variable

rebase on main and fix

ran cargo fmt
2026-08-19 23:48:19 +02:00

20 lines
427 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub struct Item {
pub name: String,
pub data: ItemData,
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub struct ItemData {
pub checked: bool,
pub amount: i64,
}
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
pub struct ButtonItem {
pub name: String,
pub category: Option<String>,
}