this post was submitted on 25 Jul 2023
45 points (94.1% liked)
Rust Programming
8146 readers
92 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Looking at the diesel docs it should be
site_aggregates::table.filter(site_aggregates::site_id.eq(1)).load(…
https://diesel.rs/ see the third example
Try
site_aggregates::dsl::site_id.eq(1)
.second reply.
Going over both error messages again, found this: https://stackoverflow.com/questions/70389667/rust-diesel-method-filter-exists-for-schema-table-but-its-trait-bounds-were-n
seems adding:
Might be helping. This compiles now: