pub fn select<T: Queryable + SqlParams, F>( conn: &mut Connection, entity: T, to_model: F, ) -> Result<T, Error>where F: Fn(&Row<'_>) -> Result<T, Error>,