[#RPCArg-2constructor-09] = xref:RPCArg.adoc[RPCArg]::RPCArg :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<rpc/util.h>` Construct a scalar argument (not an array or object). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:RPCArg/2constructor-0d.adoc[RPCArg]( std::string name, xref:RPCArg/Type.adoc[Type] type, xref:RPCArg/Fallback.adoc[Fallback] fallback, std::string description, xref:RPCArgOptions.adoc[RPCArgOptions] opts = {}); ---- [.small]#xref:RPCArg/2constructor-0d.adoc[_» more..._]# Construct a composite argument (array or object) with inner arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:RPCArg/2constructor-02.adoc[RPCArg]( std::string name, xref:RPCArg/Type.adoc[Type] type, xref:RPCArg/Fallback.adoc[Fallback] fallback, std::string description, std::vector<RPCArg> inner, xref:RPCArgOptions.adoc[RPCArgOptions] opts = {}); ---- [.small]#xref:RPCArg/2constructor-02.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *name* | The argument name, or aliases separated by '|'. | *type* | The expected JSON type. | *fallback* | Default value or optionality of the argument. | *description* | Human‐readable description of the argument. | *opts* | Additional options controlling validation and rendering. | *inner* | The arguments nested inside this array or object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#