diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-28 16:35:35 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-28 16:35:35 +0100 |
| commit | a479685602347b473d74f99f492e5e85d7afde94 (patch) | |
| tree | ed7eea0fbab0a9f33d959345719d638271539da0 /crates/rocie-client/src/implies.rs | |
| parent | feat(crates/rocie-cli): Add support for product parents (diff) | |
| download | server-a479685602347b473d74f99f492e5e85d7afde94.zip | |
chore(crates/rocie-client): Re-generate
Diffstat (limited to 'crates/rocie-client/src/implies.rs')
| -rw-r--r-- | crates/rocie-client/src/implies.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/crates/rocie-client/src/implies.rs b/crates/rocie-client/src/implies.rs index 382b8ca..e9de0ea 100644 --- a/crates/rocie-client/src/implies.rs +++ b/crates/rocie-client/src/implies.rs @@ -1,6 +1,6 @@ use std::fmt::Display; -use crate::models::{BarcodeId, ProductId, UnitId, UnitPropertyId}; +use crate::models::{BarcodeId, ProductId, ProductParentId, RecipeId, UnitId, UnitPropertyId}; // TODO(@bpeetz): The client generator should just do this. <2025-09-23> @@ -31,3 +31,17 @@ impl Display for UnitPropertyId { } } impl Copy for UnitPropertyId {} + +impl Display for ProductParentId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.value.fmt(f) + } +} +impl Copy for ProductParentId {} + +impl Display for RecipeId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.value.fmt(f) + } +} +impl Copy for RecipeId {} |
