Constructors
Synopses
Declared in <rpc/util.h>
Construct a scalar argument (not an array or object).
RPCArg(
std::string name,
Type type,
Fallback fallback,
std::string description,
RPCArgOptions opts = {});
Construct a composite argument (array or object) with inner arguments.
RPCArg(
std::string name,
Type type,
Fallback fallback,
std::string description,
std::vector<RPCArg> inner,
RPCArgOptions opts = {});
Parameters
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. |
Created with MrDocs