Represents the result of a guild message search.
More...
#include <message.h>
|
| std::optional< uint32_t > | documents_indexed |
| | Number of documents indexed so far (only present during deep indexing)
|
| |
| bool | doing_deep_historical_index {false} |
| | Whether a deep historical index is being performed.
|
| |
| std::vector< std::vector< message > > | messages |
| | Matched messages grouped by context. Each inner vector contains the matched message followed by context messages.
|
| |
| uint32_t | total_results {0} |
| | Total number of results matching the query.
|
| |
◆ message_search_result()
| dpp::message_search_result::message_search_result |
( |
| ) |
|
|
default |
◆ build_json()
Convert object to json string.
- Parameters
-
| with_id | Whether to include the ID or not |
- Note
- Some fields are conditionally filled, do not rely on all fields being present
- Returns
- std::string Json built from the structure
◆ fill_from_json()
Convert object from nlohmann::json.
- Parameters
-
- Returns
- T& Reference to self for fluent calling
◆ fill_from_json_impl()
Fill from JSON.
- Parameters
-
- Returns
- Reference to self
◆ to_json()
Convert object to nlohmann::json.
- Parameters
-
| with_id | Whether to include the ID or not |
- Note
- Some fields are conditionally filled, do not rely on all fields being present
- Returns
- json Json built from the structure
◆ json_interface< message_search_result >
◆ documents_indexed
| std::optional<uint32_t> dpp::message_search_result::documents_indexed |
Number of documents indexed so far (only present during deep indexing)
◆ doing_deep_historical_index
| bool dpp::message_search_result::doing_deep_historical_index {false} |
Whether a deep historical index is being performed.
◆ messages
| std::vector<std::vector<message> > dpp::message_search_result::messages |
Matched messages grouped by context. Each inner vector contains the matched message followed by context messages.
◆ total_results
| uint32_t dpp::message_search_result::total_results {0} |
Total number of results matching the query.