Compware/src/models/item.rs

10 lines
352 B
Rust
Raw Normal View History

2024-12-06 14:45:14 +03:00
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")
}