Describes a single argument of an RPC method for validation and help text.
Synopsis
Declared in <rpc/util.h>
struct RPCArg;
Type Aliases
Name |
Description |
Default constant value |
|
Hint for default value |
|
The argument's default: an optionality marker, a default hint, or a default value. |
Enums
Member Functions
Name |
Description |
|
Constructors |
Return the first of all aliases |
|
Return the name, throws when there are aliases |
|
Report whether the argument may be omitted. |
|
Check whether the request JSON type matches. Returns true if type matches, or object describing error(s) if not. |
|
Return the description string, including the argument type and whether the argument is required. |
|
Return the type string of the argument. Set oneline to allow it to be overridden by a custom oneline type string (m_opts.oneline_description). |
|
Return the type string of the argument when it is in an object (dict). Set oneline to get the oneline representation (less whitespace) |
Data Members
Name |
Description |
Human‐readable description of the argument. |
|
Default value or optionality of the argument. |
|
Only used for arrays or dicts |
|
The name of the arg (can be empty for inner args, can contain multiple aliases separated by | for named request arguments) |
|
Additional options controlling validation and rendering. |
|
The JSON type expected for the argument. |
Created with MrDocs