mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-09-18 09:53:39 +02:00
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
20 lines
427 B
Rust
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>,
|
|
}
|