Open drozdziak1 opened 5 years ago
I misunderstood how it works, sorry. Ommitting stuff with default values is hella unintuitive though!
As far as I understand, protobuf/grpc 3 does not differentiate between "left out" and "default" values anymore, it is an implementation detail. That way, applications do not have to check for null all the time, giving us more static type safety. So it would make sense to always display all values.
generated structs
Are you talking about generated Client/Service objects or generated Req/Resp objects?
So far, I love this crate! But it's pretty unintuitive how printing the generated structs with
{:?}
formatting doesn't do anything at all (no compile-time error, just nothing where a string representation should be).