|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
A successful REST response whose body is decoded into T on first use. More...
#include <models.hpp>
Public Member Functions | |
| RestApiResponse ()=default | |
| RestApiResponse (RawResponse raw) | |
| const T & | data () const |
| The decoded body, decoded on the first call. | |
| std::uint16_t | status () const noexcept |
| const Headers & | headers () const noexcept |
| const std::optional< std::vector< RestApiRateLimit > > & | rate_limits () const noexcept |
| const std::string & | body () const noexcept |
| The undecoded response body. | |
| const RawResponse & | raw () const noexcept |
A successful REST response whose body is decoded into T on first use.
T must be convertible with boost::json::value_to<T>, through a tag_invoke overload that the product models provide.
|
default |
|
inlineexplicit |
|
inlinenodiscard |
The decoded body, decoded on the first call.
Throws ConnectorClientError if it is not valid JSON or does not match T.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
The undecoded response body.
|
inlinenodiscardnoexcept |