summaryrefslogtreecommitdiff
path: root/dichroism/src/models
diff options
context:
space:
mode:
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,
-}