1010
1111/// Represents a binary (bincode-serialized) stream update sent
1212/// from the publisher to the router.
13- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
13+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
1414#[ serde( rename_all = "camelCase" ) ]
1515pub struct PriceFeedDataV2 {
1616 pub price_feed_id : PriceFeedId ,
@@ -36,7 +36,7 @@ pub struct PriceFeedDataV2 {
3636/// Old Represents a binary (bincode-serialized) stream update sent
3737/// from the publisher to the router.
3838/// Superseded by `PriceFeedData`.
39- #[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
39+ #[ derive( Debug , Clone , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
4040#[ serde( rename_all = "camelCase" ) ]
4141pub struct PriceFeedDataV1 {
4242 pub price_feed_id : PriceFeedId ,
@@ -75,14 +75,14 @@ impl From<PriceFeedDataV1> for PriceFeedDataV2 {
7575
7676/// A response sent from the server to the publisher client.
7777/// 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 ) ]
7979#[ serde( tag = "type" ) ]
8080#[ serde( rename_all = "camelCase" ) ]
8181pub enum ServerResponse {
8282 UpdateDeserializationError ( UpdateDeserializationErrorResponse ) ,
8383}
8484/// 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 ) ]
8686#[ serde( rename_all = "camelCase" ) ]
8787pub struct UpdateDeserializationErrorResponse {
8888 pub error : String ,
0 commit comments