1pub trait ItemUrl {
2 fn item_url(&self) -> &str;
3}
4
5impl ItemUrl for String {
6 fn item_url(&self) -> &str {
7 self.as_str()
8 }
9}
10
11impl ItemUrl for &str {
12 fn item_url(&self) -> &str {
13 self
14 }
15}
16
17pub trait OrderID {
18 fn order_id(&self) -> &str;
19}
20
21impl OrderID for String {
22 fn order_id(&self) -> &str {
23 self.as_str()
24 }
25}
26
27impl OrderID for &str {
28 fn order_id(&self) -> &str {
29 self
30 }
31}
32
33pub trait ItemID {
34 fn item_id(&self) -> &str;
35}
36
37impl ItemID for String {
38 fn item_id(&self) -> &str {
39 self.as_str()
40 }
41}
42
43impl ItemID for &str {
44 fn item_id(&self) -> &str {
45 self
46 }
47}
48
49pub trait AuctionID {
50 fn auction_id(&self) -> &str;
51}
52
53impl AuctionID for String {
54 fn auction_id(&self) -> &str {
55 self.as_str()
56 }
57}
58
59impl AuctionID for &str {
60 fn auction_id(&self) -> &str {
61 self
62 }
63}