co-maps/libs/map/everywhere_search_params.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
526 B
C++
Raw Permalink Normal View History

2025-11-22 13:58:55 +01:00
#pragma once
#include "map/search_product_info.hpp"
#include "search/result.hpp"
#include <chrono>
#include <functional>
#include <optional>
#include <string>
#include <vector>
namespace search
{
struct EverywhereSearchParams
{
using OnResults = std::function<void(Results results, std::vector<ProductInfo> productInfo)>;
std::string m_query;
std::string m_inputLocale;
std::optional<std::chrono::steady_clock::duration> m_timeout;
bool m_isCategory = false;
OnResults m_onResults;
};
} // namespace search