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

Please implement Debug, PartialEq and Eq on Client #305

Open
MaxG87 opened this issue Sep 4, 2024 · 0 comments
Open

Please implement Debug, PartialEq and Eq on Client #305

MaxG87 opened this issue Sep 4, 2024 · 0 comments

Comments

@MaxG87
Copy link

MaxG87 commented Sep 4, 2024

I am using your fantastic project to interact with Cloud Storage. I would like to make a Client a member of some struct in order to be able to reuse it multiple times. Unfortunately, this is impossible.

Since Client does not implement Debug, I cannot derive Debug on a parent enum. This in turn prevents me from deriving Debug all the way up the hierarchy, finally reaching a clap Parser. I suspect that PartialEq and Eq would be required for my tests using assert_eq!, but since assert_eq! relies on the Debug trait I had to comment them out, so I am not too sure.

Probably I could work around this issue writing custom code. However, I hoped when providing these centrally many more persons would benefit from that.

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

No branches or pull requests

1 participant