Construct an unconditional result field.
Synopsis
Declared in <rpc/util.h>
RPCResult(
Type type,
std::string m_key_name,
bool optional,
std::string description,
std::vector<RPCResult> inner = {},
RPCResultOptions opts = {});
Parameters
Name |
Description |
type |
The JSON type of the field. |
m_key_name |
The field's key name (for object members). |
optional |
Whether the field may be absent. |
description |
Human‐readable description of the field. |
inner |
The nested fields for arrays or objects. |
opts |
Additional options controlling validation and rendering. |
Created with MrDocs