Closed tontinton closed 1 month ago
Hi, thank you for creating the issue! If you are looking for an attribute that makes the member optional, then there is such an attribute. It's called #[builder(default)]
.
If you have any ideas how to improve its discoverability, I'd be happy to hear them 🐱
I found this one easy to discover in the docs, fwiw
@tontinton see my comment https://github.com/elastio/bon/issues/119#issuecomment-2337546162, if that answers you question then close the issue.
I'll close the issue myself If I won't receive feedback from @tontinton
oh ok thanks, I just missed it in the docs
This will allow:
Also for functions.
Exact syntax can be changed, doesn't really matter.