summaryrefslogtreecommitdiff
path: root/dichroism/src/models/product.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dichroism/src/models/product.rs')
-rw-r--r--dichroism/src/models/product.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/dichroism/src/models/product.rs b/dichroism/src/models/product.rs
index be0a5ec..4a3d782 100644
--- a/dichroism/src/models/product.rs
+++ b/dichroism/src/models/product.rs
@@ -1,11 +1,12 @@
use super::PhotoSet;
+#[derive(Debug, Clone)]
pub struct Product {
- pub id: u32,
+ pub id: Option<i32>,
pub name: String,
pub description: String,
- pub cents: u32,
- pub quantity: u32,
+ pub cents: i32,
+ pub quantity: i32,
pub featured: bool,
pub photo_set: PhotoSet,
pub category: String,