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/dtos/product_patch.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dichroism/src/dtos/product_patch.rs (limited to 'dichroism/src/dtos/product_patch.rs') diff --git a/dichroism/src/dtos/product_patch.rs b/dichroism/src/dtos/product_patch.rs new file mode 100644 index 0000000..ed8bf1a --- /dev/null +++ b/dichroism/src/dtos/product_patch.rs @@ -0,0 +1,11 @@ +#[derive(Debug, Deserialize)] +pub struct ProductPatch { + pub id: i32, + pub name: Option, + pub quantity: Option, + pub cents: Option, + pub description: Option, + pub featured: Option, + pub category_path: Option, + pub photo_data: Option, +} -- cgit v1.2.3