From 9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 26 Oct 2022 21:02:31 -0400 Subject: init: add some stories and personas and begin layout out domain --- dichroism/src/models/dbid.rs | 4 ---- dichroism/src/models/mod.rs | 7 ------- dichroism/src/models/photo.rs | 10 ---------- dichroism/src/models/photo_set.rs | 10 ---------- dichroism/src/models/product.rs | 13 ------------- 5 files changed, 44 deletions(-) delete mode 100644 dichroism/src/models/dbid.rs delete mode 100644 dichroism/src/models/mod.rs delete mode 100644 dichroism/src/models/photo.rs delete mode 100644 dichroism/src/models/photo_set.rs delete mode 100644 dichroism/src/models/product.rs (limited to 'dichroism/src/models') diff --git a/dichroism/src/models/dbid.rs b/dichroism/src/models/dbid.rs deleted file mode 100644 index 80eee58..0000000 --- a/dichroism/src/models/dbid.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub enum Dbid { - Stored(i32), - NotStored, -} diff --git a/dichroism/src/models/mod.rs b/dichroism/src/models/mod.rs deleted file mode 100644 index 529a9bc..0000000 --- a/dichroism/src/models/mod.rs +++ /dev/null @@ -1,7 +0,0 @@ -mod photo; -mod photo_set; -mod product; - -pub use photo::*; -pub use photo_set::*; -pub use product::*; diff --git a/dichroism/src/models/photo.rs b/dichroism/src/models/photo.rs deleted file mode 100644 index 086d387..0000000 --- a/dichroism/src/models/photo.rs +++ /dev/null @@ -1,10 +0,0 @@ -#[derive(Debug, Clone)] -pub struct Photo { - pub id: String, -} - -impl Photo { - pub fn new(id: String) -> Self { - Self { id } - } -} diff --git a/dichroism/src/models/photo_set.rs b/dichroism/src/models/photo_set.rs deleted file mode 100644 index f2c7677..0000000 --- a/dichroism/src/models/photo_set.rs +++ /dev/null @@ -1,10 +0,0 @@ -use super::Photo; - -#[derive(Debug, Clone)] -pub struct PhotoSet { - pub id: Option, - pub original: Photo, // original, just for safe-keeping - pub fullsize: Photo, // full-size, "zoomed" view - pub base: Photo, // basic viewing - pub thumbnail: Photo, // tiny, square thumbnail -} diff --git a/dichroism/src/models/product.rs b/dichroism/src/models/product.rs deleted file mode 100644 index 4a3d782..0000000 --- a/dichroism/src/models/product.rs +++ /dev/null @@ -1,13 +0,0 @@ -use super::PhotoSet; - -#[derive(Debug, Clone)] -pub struct Product { - pub id: Option, - pub name: String, - pub description: String, - pub cents: i32, - pub quantity: i32, - pub featured: bool, - pub photo_set: PhotoSet, - pub category: String, -} -- cgit v1.2.3