summaryrefslogtreecommitdiff
path: root/dichroism/src/models
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-10-26 21:02:31 -0400
committerAdam T. Carpenter <atc@53hor.net>2022-10-26 21:02:31 -0400
commit9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f (patch)
treedb9ca419266117facecdff6d30460669f3148efb /dichroism/src/models
parentf243a3b7341012227d6e8342a65f9c5d7784256f (diff)
downloadtheglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.tar.xz
theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.zip
init: add some stories and personas and begin layout out domain
Diffstat (limited to 'dichroism/src/models')
-rw-r--r--dichroism/src/models/dbid.rs4
-rw-r--r--dichroism/src/models/mod.rs7
-rw-r--r--dichroism/src/models/photo.rs10
-rw-r--r--dichroism/src/models/photo_set.rs10
-rw-r--r--dichroism/src/models/product.rs13
5 files changed, 0 insertions, 44 deletions
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<i32>,
- 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<i32>,
- pub name: String,
- pub description: String,
- pub cents: i32,
- pub quantity: i32,
- pub featured: bool,
- pub photo_set: PhotoSet,
- pub category: String,
-}