yoshidan/google-cloud-rust

Please implement Debug, PartialEq and Eq on Client

MaxG87 opened this issue · 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.