elastio / bon

Next-gen compile-time-checked builder generator, named function's arguments, and more!
https://bon-rs.com
Apache License 2.0
1.15k stars 16 forks source link

fix: add automatic docs for setters #45

Closed Veetaha closed 3 months ago

Veetaha commented 3 months ago

Fixes https://github.com/elastio/bon/issues/38

Adds automatic docs for setters to avoid getting missing_docs lint for them. The automatic docs are rather dumb, but may be still useful. Anyway, it's not conventional to put docs on every function parameter or struct field. The docs suggest consulting the start function's docs that returns the builder.

image