I need to generate a query based on user input and I can't figure out how to build an object that will be accepted as named parameters. For unnamed parameters I was able to pass a &Vec<Box<dyn ToSql>>, but for the functions that take named parameters, &Vec<(&str, Box<dyn ToSql>)> gives a type mismatch error. I'm not sure where to go from here.
I need to generate a query based on user input and I can't figure out how to build an object that will be accepted as named parameters. For unnamed parameters I was able to pass a
&Vec<Box<dyn ToSql>>, but for the functions that take named parameters,&Vec<(&str, Box<dyn ToSql>)>gives a type mismatch error. I'm not sure where to go from here.