I have this models:
use diesel::sql_types::Json;
#[derive(Queryable)]
pub struct GMapsLocation {
pub id: i32,
pub place_id: String,
pub data: Json,
}
and am trying to query that column like this:
let results = gmaps_locations
.select((id, place_id, data))
.load::<GMapsLocation>(&connection)
.expect("Erorr loading locations");
And that is not working, giving me the error:
18 | .load::<GMapsLocation>(&connection)
| ^^^^ the trait `Queryable<diesel::sql_types::Json, _>` is not implemented for `diesel::sql_types::Json`
The documentation does not give any examples and this error does not tell me anything.