From 6cbc98d76db9ea19fc11a0dc68cf390a169bd884 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 5 Dec 2024 14:14:16 +0300 Subject: [PATCH] feat(items): create the item structure --- src/models/items.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/models/items.rs diff --git a/src/models/items.rs b/src/models/items.rs new file mode 100644 index 0000000..bdb3402 --- /dev/null +++ b/src/models/items.rs @@ -0,0 +1,9 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Serialize, Deserialize, Debug, Clone)] +pub struct Item { + pub id: String, // Unique ID for the item + pub name: String, // Item name + pub description: String, // Short description of the item + pub tags: Vec<(String, String)>, // Key-value tags (e.g., "type" -> "software") +}