From 7682da81ff4c775eca048aaf0586593fb159cb85 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 23 Sep 2025 17:17:28 +0200 Subject: chore(crates/rocie-client): Regenerate --- crates/rocie-client/src/implies.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 crates/rocie-client/src/implies.rs (limited to 'crates/rocie-client/src/implies.rs') 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 {} -- cgit 1.4.1