-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Deeply Rename Properties before/after invoke #2732
Comments
Just add I believe this is more of a documentation issue, so I will just move to tauri-docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
I have to manually rename objects properties from camelCase to snake_case to pass them to tauri invoke (also on the way back).
For instance, if I have rust code like this:
Then in javascript I have to do this:
You can imagine this is annnoying for deeply nested structs, objects, esp involving arrays/vecs
Describe the solution you'd like
I'd like to have the case conversion deeply applied.
Alternatives considered
https://serde.rs/attr-rename.html
Additional context
Perhaps the Usage of Serde should be suggested in the documentation.
No response
The text was updated successfully, but these errors were encountered: