Compware/src/models/item.rs

13 lines
383 B
Rust
Raw Normal View History

/// 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};
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 {
pub id: String,
pub name: String,
pub description: String,
pub tags: Vec<(String, String)>,
pub reviews: Vec<Review>,
}