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
Most of the modules in the models module have a lot of functions in common where the only differences are the structs. It would save a lot of time and consolidate a lot of code if we could switch a lot of that over to use traits and derive macros. For example, a lot of those modules have a find_by_id function. We could create a trait called FindableById and write a derive macro to generate the code for it.
The text was updated successfully, but these errors were encountered:
Most of the modules in the
models
module have a lot of functions in common where the only differences are the structs. It would save a lot of time and consolidate a lot of code if we could switch a lot of that over to use traits and derive macros. For example, a lot of those modules have afind_by_id
function. We could create a trait calledFindableById
and write a derive macro to generate the code for it.The text was updated successfully, but these errors were encountered: