add Default trait to generated types#143
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
@hchataing feel free to create a feature inspired by this patch (I'm not able to accept the CLA) |
c6f0523 to
0248ac9
Compare
0248ac9 to
571e683
Compare
|
Patch rebased to #147 (that was a failed experiment to see if me uploading the patch would bypass the CLA enforcement) |
|
@hchataing thinking about this feature, I realized we can certainly go one step further looking at Builder pattern. I tried to implement this, but I'm still not comfortable enough with the code. |
You could use this pattern to specify a subset of fields only: I haven't seen a lot of use cases for using the |
|
I did not know the pattern you presented. So there is no more need. Thanks. |
Default trait is useful when creating proof-of-concept tools.
Fixes #146