Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debug trait implementations for all structs and enums #68

Conversation

silasalberti
Copy link
Contributor

This PR implements the Debug trait for all structs and enums that were missing it. Changes are minimal and only add #[derive(Debug)] where needed.

Modified files:

  • src/exchange/modify.rs
  • src/exchange/order.rs
  • src/exchange/cancel.rs
  • src/exchange/exchange_client.rs
  • src/req.rs

Testing:

  • All 8 unit tests passed successfully
  • CI script (ci.sh) completed with no errors
  • All compilation checks passed
  • No warnings or errors related to Debug implementations

Resolves: #52

Created by Devin: https://preview.devin.ai/sessions/26449cc89c9b4b9886ba30da44fd6bb9

- Added #[derive(Debug)] to ClientModifyRequest
- Added #[derive(Debug)] to ClientLimit, ClientTrigger, MarketOrderParams, MarketCloseParams, ClientOrder, ClientOrderRequest
- Added #[derive(Debug)] to ClientCancelRequest and ClientCancelRequestCloid
- Added #[derive(Debug)] to ExchangeClient
- Added #[derive(Debug)] to HttpClient

Fixes hyperliquid-dex#52
@chameleon-jeff
Copy link

Thanks Devin

@chameleon-jeff chameleon-jeff merged commit cff25ea into hyperliquid-dex:master Dec 8, 2024
1 check passed
@rajivpo
Copy link
Contributor

rajivpo commented Dec 10, 2024

thanks devin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Debug trait for all Struct and Enums
3 participants