diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-23 17:17:28 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-23 17:17:28 +0200 |
| commit | 7682da81ff4c775eca048aaf0586593fb159cb85 (patch) | |
| tree | e310245e136b21e15696ffee2756cc6f49f6ae73 /crates/rocie-client/src/implies.rs | |
| parent | feat(scripts/generate_api_client.sh): Make the API better by configuring the ... (diff) | |
| download | server-7682da81ff4c775eca048aaf0586593fb159cb85.zip | |
chore(crates/rocie-client): Regenerate
Diffstat (limited to 'crates/rocie-client/src/implies.rs')
| -rw-r--r-- | crates/rocie-client/src/implies.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/rocie-client/src/implies.rs b/crates/rocie-client/src/implies.rs new file mode 100644 index 0000000..147588a --- /dev/null +++ b/crates/rocie-client/src/implies.rs @@ -0,0 +1,26 @@ +use std::fmt::Display; + +use crate::models::{BarcodeId, ProductId, UnitId}; + +// TODO(@bpeetz): The client generator should just do this. <2025-09-23> + +impl Display for BarcodeId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.value.fmt(f) + } +} +impl Copy for BarcodeId {} + +impl Display for ProductId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.value.fmt(f) + } +} +impl Copy for ProductId {} + +impl Display for UnitId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.value.fmt(f) + } +} +impl Copy for UnitId {} |
