Skip to content

Generate new() or implement Default for generated structs #2469

Closed Answered by pvdrz
wmmc88 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the derive_default method or the --with-derive-default flag to derive Default for every type when possible.

Edit: Does this solve your issue @wmmc88?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wmmc88
Comment options

@pvdrz
Comment options

@wmmc88
Comment options

Answer selected by pvdrz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants