Currently, src/repos/users_repo.rs file contains explicit implementations (impl FromRow ... for ...) for User, UserId and UserEntry.
Initial reasoning was to try to keep the domain model as clean as possible.
However, just adding the sqlx::FromRow into the existing #[derive(...) attribute shouldn't hurt, but eliminate those implementations:
Currently,
src/repos/users_repo.rs
file contains explicit implementations (impl FromRow ... for ...
) forUser
,UserId
andUserEntry
.Initial reasoning was to try to keep the domain model as clean as possible. However, just adding the![image](https://user-images.githubusercontent.com/14140226/209678657-36f271ae-afc0-4d86-b1f2-35c4b209128a.png)
sqlx::FromRow
into the existing#[derive(...)
attribute shouldn't hurt, but eliminate those implementations: