summaryrefslogtreecommitdiff
path: root/src/db/story.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2024-11-01 16:09:20 +0100
committerWriterV2 <primary-v2@protonmail.com>2024-11-01 16:09:20 +0100
commit0d6cc15cc846e4266fb34854f8254b91ad1e6111 (patch)
treea2a0ab4bc35e2461a1d7dbf228ba226442fce6fb /src/db/story.rs
parent6092e37e3a8e890cbe9d13305bcaf67daf410d93 (diff)
Feat: Add Frontend builder
- update color scheme (TODO: accent color not final) - add product frontend helper to build card - add product frontend helper to build cards layout - add productmarker and implement for story, product and tool - add container for product and specific product (TODO: Refactoring) - add page builder for products - add temporary dummy product (TODO: Remove after first real implementation)
Diffstat (limited to 'src/db/story.rs')
-rw-r--r--src/db/story.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/story.rs b/src/db/story.rs
index 5acc818..ee79e4f 100644
--- a/src/db/story.rs
+++ b/src/db/story.rs
@@ -4,6 +4,7 @@ use sqlx::SqlitePool;
use crate::error::AppError;
use crate::db::product::Product;
+use super::product::ProductMarker;
use super::ProductDatabaseHandler;
@@ -16,6 +17,8 @@ pub struct Story {
pub pid: i64,
}
+impl ProductMarker for Story {}
+
#[async_trait]
impl ProductDatabaseHandler for Story {
async fn get_all(pool: SqlitePool) -> Result<Vec<Self>, AppError>