Load shopping list from server on app startup
This commit is contained in:
1 parent
8059ab7b85
commit
22f829f579
10 files changed
+1503
-1697
No files matched your search
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "inkopslista-lib"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
@@ -0,0 +1,13 @@
|
||||
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,
|
||||
}
|
||||
Reference in new issue
Block a user