Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0277]: the trait bound `(i32, std::string::String, std::string::String, std::string::String, std::string::String): diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` is not satisfied
- --> src/main.rs:51:5
- |
- 51 | .load::<Users>(&conn)
- | ^^^^ the trait `diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` is not implemented for `(i32, std::string::String, std::string::String, std::string::String, std::string::String)`
- |
- = help: the following implementations were found:
- <(A, B, C, D, E) as diesel::Queryable<(SA, SB, SC, SD, SE), __DB>>
- <(A, B, C, D, E) as diesel::Queryable<diesel::sql_types::Record<(SA, SB, SC, SD, SE)>, diesel::pg::Pg>>
- = note: required because of the requirements on the impl of `diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` for `Users`
- = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<_, Users>` for `diesel::query_builder::SelectStatement<schema::users::table, diesel::query_builder::select_clause::DefaultSelectClause, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::NoWhereClause, diesel::query_builder::order_clause::OrderClause<diesel::expression::operators::Asc<schema::users::columns::id>>>`
- error[E0277]: the trait bound `MyDatabase: diesel::Connection` is not satisfied
- --> src/main.rs:51:5
- |
- 51 | .load::<Users>(&conn)
- | ^^^^ the trait `diesel::Connection` is not implemented for `MyDatabase`
- |
- = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<MyDatabase, Users>` for `diesel::query_builder::SelectStatement<schema::users::table, diesel::query_builder::select_clause::DefaultSelectClause, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::NoWhereClause, diesel::query_builder::order_clause::OrderClause<diesel::expression::operators::Asc<schema::users::columns::id>>>`
- error: aborting due to 2 previous errors
- For more information about this error, try `rustc --explain E0277`.
Add Comment
Please, Sign In to add comment