From 3e1eadbbfdca1b2c0cb32ba4c8e1160a60e0ccb8 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 31 Oct 2020 10:14:31 -0400 Subject: All basic functionality implemented. --- dichroism/src/models/product.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dichroism/src/models/product.rs') 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, 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, -- cgit v1.2.3