this post was submitted on 25 Jul 2023
54 points (95.0% liked)
Rust Programming
8172 readers
23 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: