2024-12-09 19:24:46 +03:00
|
|
|
/// Represents an Item in CompareWare.
|
|
|
|
/// Each item has metadata and key-value tags for categorization.
|
2024-12-06 14:45:14 +03:00
|
|
|
use serde::{Deserialize, Serialize};
|
2024-12-16 20:47:24 +03:00
|
|
|
use crate::models::review::Review;
|
2024-12-16 19:06:33 +03:00
|
|
|
|
2024-12-06 14:45:14 +03:00
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
|
|
pub struct Item {
|
2024-12-16 20:47:24 +03:00
|
|
|
pub id: String,
|
|
|
|
pub name: String,
|
|
|
|
pub description: String,
|
|
|
|
pub tags: Vec<(String, String)>,
|
2024-12-17 02:31:35 +03:00
|
|
|
pub reviews: Vec<Review>,
|
2024-12-16 20:47:24 +03:00
|
|
|
}
|