How can I expose those two constructor (and no others)? The second constructor doesn’t seem to play well with the @kwdef macro, but I hope there is a solution
Well, actually, I’m not that familiar with @kwdef, and dislike that interface, but that seems to be the error given.
If you are going to define a kwargs interface to the type construction anyway, I would personally set the defaults in the constructor and avoid the macro.
In my actual problem I have to generate these things with a macro from a different syntax, so I hoped there was something simpler, but this isn’t actually that bad, thank you a lot!