1use std::fmt::Display;
12
13use crate::models::{
14 BarcodeId, ProductId, ProductParentId, RecipeId, RecipeParentId, UnitId, UnitPropertyId, UserId,
15};
16
17impl Display for BarcodeId {
20 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
21 self.value.fmt(f)
22 }
23}
24impl Copy for BarcodeId {}
25
26impl Display for ProductId {
27 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
28 self.value.fmt(f)
29 }
30}
31impl Copy for ProductId {}
32
33impl Display for UnitId {
34 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35 self.value.fmt(f)
36 }
37}
38impl Copy for UnitId {}
39
40impl Display for UnitPropertyId {
41 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
42 self.value.fmt(f)
43 }
44}
45impl Copy for UnitPropertyId {}
46
47impl Display for ProductParentId {
48 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49 self.value.fmt(f)
50 }
51}
52impl Copy for ProductParentId {}
53
54impl Display for RecipeId {
55 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56 self.value.fmt(f)
57 }
58}
59impl Copy for RecipeId {}
60
61impl Display for UserId {
62 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
63 self.value.fmt(f)
64 }
65}
66impl Copy for UserId {}
67
68impl Display for RecipeParentId {
69 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70 self.value.fmt(f)
71 }
72}
73impl Copy for RecipeParentId {}