Write a Rust function using Diesel that performs a complex update operation with multiple conditions and joins.
Naresh Beniwal