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