Reusing a type as a Diesel expression

Hello everybody. Diesel question!

I'm trying to do something like this: I have a type:

pub struct TextFilter {
    is: Option<String>,
    contains: Option<String>,

I would like to use this type to filter any arbitrary column of type text.

Is there any way to do this? Many thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.