You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using makeit heavily with props for a web framework, and currently when a prop is an Option<T>, you have to write <MyComponent prop={Some(val)} />, but it would be much more desireable in my case to do <MyComponent prop={val} />.
Could the set_ methods generated for fields of type Option<T> take T directly rather than the option itself?
If needed, another method set_none could be generated for options which would set it to None.
The text was updated successfully, but these errors were encountered:
I'm using makeit heavily with props for a web framework, and currently when a prop is an
Option<T>
, you have to write<MyComponent prop={Some(val)} />
, but it would be much more desireable in my case to do<MyComponent prop={val} />
.Could the
set_
methods generated for fields of typeOption<T>
takeT
directly rather than the option itself?If needed, another method
set_none
could be generated for options which would set it toNone
.The text was updated successfully, but these errors were encountered: