Replies: 2 comments
-
Hey @e-rhodes, I agree with what you have suggested!
Yes, this is true for ordinary user but we have to cater the need of advance users.
I would say we can safely derive Sounds good? CC @tyt2y3 |
Beta Was this translation helpful? Give feedback.
-
Yes, I am still considering whether I'd extend the API by using tuple variants in enums |
Beta Was this translation helpful? Give feedback.
-
Summary
The enums generated by
sea_orm_cli
(those placed insea_orm_active_enums
, referencing databse enums) can derive copy, since they never have struct variants.Motivation
The language docs have this to say:
If the databases were to support more complex enum variants, then this may no longer be true. However, this seems unlikely.
Additional Information
To be safe, it could be toggled with an optional flag (cf.
--with-serde
).Beta Was this translation helpful? Give feedback.
All reactions