Cppinecone
A C++ client for the Pinecone vector database
accepted.hpp
Go to the documentation of this file.
1 #pragma once
7 #include <cstdint>
8 #include <string_view>
9 #include <vector>
10 
11 #include "pinecone/util/result.hpp"
12 namespace pinecone::types
13 {
18 struct accepted {
19  explicit accepted(std::vector<uint8_t>& data) noexcept : _result(data.begin(), data.end()) {}
20 
24  [[nodiscard]] auto result() const noexcept -> std::string_view { return _result; }
25 
26  private:
27  std::string _result;
28 };
29 } // namespace pinecone::types
T begin(T... args)
T end(T... args)
STL namespace.
Models the possibility of failure for Pinecone operations.
Some Pinecone API operations have no explicitly expected result. Cppinecone models all of these opera...
Definition: accepted.hpp:18
auto result() const noexcept -> std::string_view
Definition: accepted.hpp:24