terry90 / diesel_filter

Diesel filtering & pagination
Apache License 2.0
13 stars 7 forks source link

Allow using any type in #[filter] #5

Closed popen2 closed 11 months ago

popen2 commented 11 months ago

This change uses exact types as they're used in the struct being #[derive(DieselFilter)]ed.

The reasoning is that quoting the exact type allows for using new type pattern without needing diesel_filter to do anything special.

The example has been fixed to add a type using diesel-derive-newtype.