|
Plotly.cpp 0.1.0
A C++ plotting library for expressive, interactive, real-time & streaming data visualization
|
Structure representing a JSON-RPC response object. More...
#include <json_rpc.hpp>
Public Member Functions | |
| auto | toJson () const -> nlohmann::json |
| Converts the response to a JSON object. | |
Public Attributes | |
| std::optional< nlohmann::json > | id |
| Request ID (null for notifications) | |
| std::optional< nlohmann::json > | result |
| The result of the request (if successful) | |
| std::optional< JsonRpcError > | error |
| The error object (if request failed) | |
| std::string | jsonrpc = "2.0" |
| JSON-RPC version string. | |
Structure representing a JSON-RPC response object.
|
nodiscard |
Converts the response to a JSON object.
| std::optional<JsonRpcError> plotly::detail::JsonRpcResponse::error |
The error object (if request failed)
| std::optional<nlohmann::json> plotly::detail::JsonRpcResponse::id |
Request ID (null for notifications)
| std::string plotly::detail::JsonRpcResponse::jsonrpc = "2.0" |
JSON-RPC version string.
| std::optional<nlohmann::json> plotly::detail::JsonRpcResponse::result |
The result of the request (if successful)