Update and Delete Resources
Learn to update and delete a resource in Diesel.
Update
Updating a resource might be a bit tricky, so we’re going to need a few helper structs. We’ll use the annotation AsChangeset
for the struct
we directly modify in the database.
We have the option to refactor the structs used for inserting, but in our case, we’ll create new ones for this purpose. ...