/// Represents an Item in CompareWare. /// Each item has metadata and key-value tags for categorization. use serde::{Deserialize, Serialize}; use std::collections::HashMap; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Item { pub id: String, pub name: String, pub description: String, // pub reviews: Vec, pub wikidata_id: Option, pub custom_properties: HashMap, } #[derive(Serialize, Deserialize, Debug, Clone)] pub struct ReviewWithRating { pub content: String, pub rating: u8, // Ratings from 1 to 5 }