[#RPCResult-2constructor-03] = xref:RPCResult.adoc[RPCResult]::RPCResult :relfileprefix: ../ :mrdocs: Construct an unconditional result field. == Synopsis Declared in `<rpc/util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- RPCResult( xref:RPCResult/Type.adoc[Type] type, std::string m_key_name, bool optional, std::string description, std::vector<RPCResult> inner = {}, xref:RPCResultOptions.adoc[RPCResultOptions] opts = {}); ---- == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#