From fa7f650562337c7f3a4fb7446e56575e26380494 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sun, 3 Nov 2024 18:50:29 +0100 Subject: Feat: Finalize ability to get all products with details - Remove dummy product - Add ProductMarker method to get product id + implement - Move method to get all products out of PageBuilder into its own function in Product module - Finalize getting all products with details - Add empty implementation for Story for testing purposes (TODO: add card details) --- src/db/tool.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/db/tool.rs') diff --git a/src/db/tool.rs b/src/db/tool.rs index 5f23f54..c53dc1e 100644 --- a/src/db/tool.rs +++ b/src/db/tool.rs @@ -7,4 +7,8 @@ pub struct Tool { pub pid: i64, } -impl ProductMarker for Tool {} +impl ProductMarker for Tool { + fn product_id(&self) -> i64 { + self.id + } +} -- cgit v1.2.3