this post was submitted on 11 Sep 2025
5 points (100.0% liked)
Rust
7572 readers
2 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If the spec contains default values why not make a constructor with all the missing fields or implement
Defaultwhen all fields are covered?Also lol:
For the first implementation I wanted to keep it simple, I don't exclude that in the future it will change.
Yep, I still need to figure out deep macro testing, for now I use the integration tests and cargo expand. This will absolutely change in the future :)
Thanks for the feedback!