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 thought I would need this but it turned out that the enum values are serialized to their string representation when sent as JSON response from axum. So I can use the literal string representation in the TypeScript code, Rust enum in rust code, and in the database the enum is stored as an integer.
I would like to export a struct that looks like this
into a format that looks like this:
This is what was generated:
Is there a way to get an enum in typescript with the same discriminants as in rust?
The text was updated successfully, but these errors were encountered: