![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <util.h>
Public Types | |
| enum class | Type { OBJ , ARR , STR , NUM , BOOL , NONE , ANY , STR_AMOUNT , STR_HEX , OBJ_DYN , ARR_FIXED , NUM_TIME , ELISION } |
Public Member Functions | |
| RPCResult (std::string cond, Type type, std::string m_key_name, bool optional, std::string description, std::vector< RPCResult > inner={}) | |
| RPCResult (std::string cond, Type type, std::string m_key_name, std::string description, std::vector< RPCResult > inner={}) | |
| RPCResult (Type type, std::string m_key_name, bool optional, std::string description, std::vector< RPCResult > inner={}, bool skip_type_check=false) | |
| RPCResult (Type type, std::string m_key_name, std::string description, std::vector< RPCResult > inner={}, bool skip_type_check=false) | |
| void | ToSections (Sections §ions, OuterType outer_type=OuterType::NONE, int current_indent=0) const |
| Append the sections of the result. | |
| std::string | ToStringObj () const |
| Return the type string of the result when it is in an object (dict). | |
| std::string | ToDescriptionString () const |
| Return the description string, including the result type. | |
| UniValue | MatchesType (const UniValue &result) const |
| Check whether the result JSON type matches. | |
Public Attributes | |
| const Type | m_type |
| const std::string | m_key_name |
| Only used for dicts. | |
| const std::vector< RPCResult > | m_inner |
| Only used for arrays or dicts. | |
| const bool | m_optional |
| const bool | m_skip_type_check |
| const std::string | m_description |
| const std::string | m_cond |
Private Member Functions | |
| void | CheckInnerDoc () const |
|
strong |
| std::string RPCResult::ToDescriptionString | ( | ) | const |
Return the description string, including the result type.
| void RPCResult::ToSections | ( | Sections & | sections, |
| OuterType | outer_type = OuterType::NONE, | ||
| int | current_indent = 0 ) const |
| std::string RPCResult::ToStringObj | ( | ) | const |
Return the type string of the result when it is in an object (dict).
| const std::vector<RPCResult> RPCResult::m_inner |