diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2024-11-03 18:50:29 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2024-11-03 18:50:29 +0100 |
| commit | fa7f650562337c7f3a4fb7446e56575e26380494 (patch) | |
| tree | 082643ee68f3773e6b9bfd2ed42e75d1bee79d44 /src/db/game.rs | |
| parent | eb326116f4abc6b12ec81d06586d7cf08755538c (diff) | |
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)
Diffstat (limited to 'src/db/game.rs')
| -rw-r--r-- | src/db/game.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/game.rs b/src/db/game.rs index 0620314..e10006c 100644 --- a/src/db/game.rs +++ b/src/db/game.rs @@ -7,4 +7,8 @@ pub struct Game { pub pid: i64, } -impl ProductMarker for Game {} +impl ProductMarker for Game { + fn product_id(&self) -> i64 { + self.pid + } +} |
