Construct a conditional, non-optional result field.
Declared in <rpc/util.h>
RPCResult(
std::string cond,
Type type,
std::string m_key_name,
std::string description,
std::vector<RPCResult> inner = {},
RPCResultOptions opts = {});
| Name | Description |
|---|---|
| cond | Condition under which the field is present. |
| type | The JSON type of the field. |
| m_key_name | The field's key name (for object members). |
| description | Human-readable description of the field. |
| inner | The nested fields for arrays or objects. |
| opts | Additional options controlling validation and rendering. |