10
10
11
11
/// Represents a binary (bincode-serialized) stream update sent
12
12
/// from the publisher to the router.
13
- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
13
+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
14
14
#[ serde( rename_all = "camelCase" ) ]
15
15
pub struct PriceFeedDataV2 {
16
16
pub price_feed_id : PriceFeedId ,
@@ -36,7 +36,7 @@ pub struct PriceFeedDataV2 {
36
36
/// Old Represents a binary (bincode-serialized) stream update sent
37
37
/// from the publisher to the router.
38
38
/// Superseded by `PriceFeedData`.
39
- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
39
+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
40
40
#[ serde( rename_all = "camelCase" ) ]
41
41
pub struct PriceFeedDataV1 {
42
42
pub price_feed_id : PriceFeedId ,
@@ -75,14 +75,14 @@ impl From<PriceFeedDataV1> for PriceFeedDataV2 {
75
75
76
76
/// A response sent from the server to the publisher client.
77
77
/// Currently only serde errors are reported back to the client.
78
- #[ derive( Debug , Clone , Serialize , Deserialize , From ) ]
78
+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize , From ) ]
79
79
#[ serde( tag = "type" ) ]
80
80
#[ serde( rename_all = "camelCase" ) ]
81
81
pub enum ServerResponse {
82
82
UpdateDeserializationError ( UpdateDeserializationErrorResponse ) ,
83
83
}
84
84
/// Sent to the publisher if the binary data could not be parsed
85
- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
85
+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
86
86
#[ serde( rename_all = "camelCase" ) ]
87
87
pub struct UpdateDeserializationErrorResponse {
88
88
pub error : String ,
0 commit comments