You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEtest_table
(
json_field jsonb NOT NULL
);
#[derive(Deserialize)structInnerStruct{id:i32}structMainStruct{pubjson_field:Vec<InnerStruct>,}// ... let res = sqlx::query_as!(MainStruct,"SELECT json_field FROM test_table").fetch_all(&self.pool).await?;// ...
With this code I get the following error: the trait bound `Vec<InnerStruct>: From<JsonValue>` is not satisfied
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With this code I get the following error:
the trait bound `Vec<InnerStruct>: From<JsonValue>` is not satisfied
Is this not possible with sqlx?
Beta Was this translation helpful? Give feedback.
All reactions