RPCArg::RPCArg

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 = {});
» more...

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 = {});
» more...

Parameters

NameDescription
nameThe argument name, or aliases separated by '|'.
typeThe expected JSON type.
fallbackDefault value or optionality of the argument.
descriptionHuman-readable description of the argument.
optsAdditional options controlling validation and rendering.
innerThe arguments nested inside this array or object.