pub fn get<T: Queryable + SqlParams, F, R>( client: Client, entity: T, to_model: F, ) -> Result<R, Error>where F: Fn(&Row) -> Result<R, Error>,