11 #include <nlohmann/json.hpp>
16 using json = nlohmann::json;
18 namespace pinecone::types
26 template <
typename T,
bool Json = !std::is_same_v<T, accepted>>
28 using parsed_type = T;
39 T parsed = json::parse(data);
A monostate sentinel type for operations that have no associated response.
Models the possibility of failure for Pinecone operations.
Some Pinecone API operations have no explicitly expected result. Cppinecone models all of these opera...
Parses raw data from the Pinecone API into native C++ types.
auto parse(std::vector< uint8_t > &data) const -> util::result< T >
Attempts to parse a stream of bytes into the provided type.
Models the possibility of failure for all Cppinecone public API operations.