...

/

Update and Delete Resources

Update and Delete Resources

Learn to update and delete a resource in Diesel.

We'll cover the following...

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. ...