Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | struct RPCResult { | ||||
std::string ToStringObj() const; | std::string ToStringObj() const; | ||||
/** Return the description string, including the result type. */ | /** Return the description string, including the result type. */ | ||||
std::string ToDescriptionString() const; | std::string ToDescriptionString() const; | ||||
}; | }; | ||||
struct RPCResults { | struct RPCResults { | ||||
const std::vector<RPCResult> m_results; | const std::vector<RPCResult> m_results; | ||||
RPCResults() : m_results{} {} | |||||
RPCResults(RPCResult result) : m_results{{result}} {} | RPCResults(RPCResult result) : m_results{{result}} {} | ||||
RPCResults(std::initializer_list<RPCResult> results) : m_results{results} {} | RPCResults(std::initializer_list<RPCResult> results) : m_results{results} {} | ||||
/** | /** | ||||
* Return the description string. | * Return the description string. | ||||
*/ | */ | ||||
std::string ToDescriptionString() const; | std::string ToDescriptionString() const; | ||||
Show All 38 Lines |