-
|
I'm implementing an rpc handler, that needs a builder and I wanted something like: Under the hood I'd like to collect all rpc into a map of some kind. What's the best way to accomplish this with bon (I really enjoy it, great work, BTW)? |
Beta Was this translation helpful? Give feedback.
Answered by
Veetaha
Apr 19, 2025
Replies: 2 comments
-
|
Hi, you can define a custom map field via |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dpc
-
|
Thanks a lot! Will look into it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, you can define a custom map field via
#[builder(field)]. See this example of how it can be used to implement a similar API.