Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::Result Struct Reference

Result type used to return responses or error statuses to the Webserver subsystem. More...

#include <Types.hpp>

Public Member Functions

 Result (ReturnType returnType)
 Construct a new Result object from ReturnType.
 
 Result (Status status)
 Construct a new Result object from Status.
 
 Result (boost::json::object response)
 Construct a new Result object from a response object.
 

Public Attributes

std::variant< Status, boost::json::object > response
 
boost::json::array warnings
 

Detailed Description

Result type used to return responses or error statuses to the Webserver subsystem.

Constructor & Destructor Documentation

◆ Result() [1/3]

rpc::Result::Result ( ReturnType returnType)
inlineexplicit

Construct a new Result object from ReturnType.

Parameters
returnTypeThe ReturnType to construct the result from

◆ Result() [2/3]

rpc::Result::Result ( Status status)
inlineexplicit

Construct a new Result object from Status.

Parameters
statusThe status to construct the result from

◆ Result() [3/3]

rpc::Result::Result ( boost::json::object response)
inlineexplicit

Construct a new Result object from a response object.

Parameters
responseThe response to construct the result from

The documentation for this struct was generated from the following file: