[#RPCResult-2constructor-0a]
= xref:RPCResult.adoc[RPCResult]::RPCResult
:relfileprefix: ../
:mrdocs:

Construct a conditional, non&hyphen;optional result field&period;

== Synopsis

Declared in `&lt;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
RPCResult(
    std::string cond,
    xref:RPCResult/Type.adoc[Type] type,
    std::string m&lowbar;key&lowbar;name,
    std::string description,
    std::vector&lt;RPCResult&gt; inner = &lcub;&rcub;,
    xref:RPCResultOptions.adoc[RPCResultOptions] opts = &lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cond*
| Condition under which the field is present&period;
| *type*
| The JSON type of the field&period;
| *m&lowbar;key&lowbar;name*
| The field&apos;s key name (for object members)&period;
| *description*
| Human&hyphen;readable description of the field&period;
| *inner*
| The nested fields for arrays or objects&period;
| *opts*
| Additional options controlling validation and rendering&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
