Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
26
libs/map/everywhere_search_params.hpp
Normal file
26
libs/map/everywhere_search_params.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue