Awesome library! Had a lot of fun using it so far.
I have an edge case where one of my input argument is an Option<bool> since I want to encode the states yes/no/maybe via Some(true)/Some(false)/None. Currently, bon::builder would interpret that argument as optional, even though I want it to be mandatory.
#22 could be related in a sense that it would allow me to work around this issue.
For other people looking for a workaround: create a typealias type ... = Option<T>, such that bon is not aware of the top-level Option type.
A note for the community from the maintainers
Please vote on this issue by adding a 👍 reaction to help the maintainers with prioritizing it. You may add a comment describing your real use case related to this issue for us to better understand the problem domain.
Awesome library! Had a lot of fun using it so far.
I have an edge case where one of my input argument is an
Option<bool>since I want to encode the states yes/no/maybe viaSome(true)/Some(false)/None. Currently,bon::builderwould interpret that argument as optional, even though I want it to be mandatory.#22 could be related in a sense that it would allow me to work around this issue.
For other people looking for a workaround: create a typealias
type ... = Option<T>, such thatbonis not aware of the top-levelOptiontype.A note for the community from the maintainers
Please vote on this issue by adding a 👍 reaction to help the maintainers with prioritizing it. You may add a comment describing your real use case related to this issue for us to better understand the problem domain.