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
Active enums generated by the sea-orm-cli generate entity could be used as keys in hashmaps/hashsets, etc...
Thus it would be really useful if one could opt-in to having Hash automatically derived, like there is already an option for the Copy trait via the --with-copy-enums CLI option
Proposed Solutions
Add an optional --with-hash-enums option to the CLI, which then will add Hash to the traits derived on the generated active enums.
Current Workarounds
Customize generated files manually and repeat that customization after each generate.
The text was updated successfully, but these errors were encountered:
Motivation
Active enums generated by the
sea-orm-cli generate entity
could be used as keys in hashmaps/hashsets, etc...Thus it would be really useful if one could opt-in to having
Hash
automatically derived, like there is already an option for theCopy
trait via the--with-copy-enums
CLI optionProposed Solutions
Add an optional
--with-hash-enums
option to the CLI, which then will addHash
to the traits derived on the generated active enums.Current Workarounds
Customize generated files manually and repeat that customization after each generate.
The text was updated successfully, but these errors were encountered: