google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

Please implement Debug, PartialEq and Eq on Client

Open MaxG87 opened this issue 1 year ago • 0 comments

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.

MaxG87 avatar Sep 04 '24 15:09 MaxG87