Found a way to map PosgreSQL to my User model. I used impl From<Row> , and then: let result = client.query("SELECT id, name FROM users", ...
確定! 回上一頁