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

impl ItemUrl for String {
    fn item_url(&self) -> &str {
        self.as_str()
    }
}

impl ItemUrl for &str {
    fn item_url(&self) -> &str {
        self
    }
}

pub trait OrderID {
    fn order_id(&self) -> &str;
}

impl OrderID for String {
    fn order_id(&self) -> &str {
        self.as_str()
    }
}

impl OrderID for &str {
    fn order_id(&self) -> &str {
        self
    }
}

pub trait ItemID {
    fn item_id(&self) -> &str;
}

impl ItemID for String {
    fn item_id(&self) -> &str {
        self.as_str()
    }
}

impl ItemID for &str {
    fn item_id(&self) -> &str {
        self
    }
}

pub trait AuctionID {
    fn auction_id(&self) -> &str;
}

impl AuctionID for String {
    fn auction_id(&self) -> &str {
        self.as_str()
    }
}

impl AuctionID for &str {
    fn auction_id(&self) -> &str {
        self
    }
}