feat(items): create the item structure

This commit is contained in:
Ryan Mwangi 2024-12-05 14:14:16 +03:00
parent 4f9b421f52
commit 6cbc98d76d
1 changed files with 9 additions and 0 deletions

9
src/models/items.rs Normal file
View File

@ -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")
}