Diesel codegen generates boilerplate for you. It lets you focus on your business logic, not mapping to and from SQL rows.

That means you can write this:

With Diesel #[derive(Queryable)] pub struct Download { id: i32, version_id: i32, downloads: i32, counted: i32, date: SystemTime, }

Instead of this: