[#RPCArgOptions]
= RPCArgOptions
:mrdocs:

Optional settings controlling how an RPCArg is validated and rendered&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct RPCArgOptions;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:RPCArgOptions/also_positional.adoc[`also&lowbar;positional`] 
| If set allows a named&hyphen;parameter field in an OBJ&lowbar;NAMED&lowbar;PARAM options object to have the same name as a top&hyphen;level parameter&period; By default the RPC framework disallows this, because if an RPC request passes the value by name, it is assigned to top&hyphen;level parameter position, not to the options position, defeating the purpose of using OBJ&lowbar;NAMED&lowbar;PARAMS instead OBJ for that option&period; But sometimes it makes sense to allow less&hyphen;commonly used options to be passed by name only, and more commonly used options to be passed by name or position, so the RPC framework allows this as long as methods set the also&lowbar;positional flag and read values from both positions&period;
| xref:RPCArgOptions/hidden.adoc[`hidden`] 
| For testing only
| xref:RPCArgOptions/oneline_description.adoc[`oneline&lowbar;description`] 
| Should be empty unless it is supposed to override the auto&hyphen;generated summary line
| xref:RPCArgOptions/placeholder.adoc[`placeholder`] 
| If set, the argument is retained only for compatibility and should generally be omitted&period;
| xref:RPCArgOptions/skip_type_check.adoc[`skip&lowbar;type&lowbar;check`] 
| If set, skip JSON type checking for this argument&period;
| xref:RPCArgOptions/type_str.adoc[`type&lowbar;str`] 
| Should be empty unless it is supposed to override the auto&hyphen;generated type strings&period; Vector length is either 0 or 2, m&lowbar;opts&period;type&lowbar;str&period;at(0) will override the type of the value in a key&hyphen;value pair, m&lowbar;opts&period;type&lowbar;str&period;at(1) will override the type in the argument description&period;
|===



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