RPCResult::RPCResult

Construct an unconditional result field.

Synopsis

Declared in <rpc/util.h>

RPCResult(
    Type type,
    std::string m_key_name,
    bool optional,
    std::string description,
    std::vector<RPCResult> inner = {},
    RPCResultOptions opts = {});

Parameters

NameDescription
typeThe JSON type of the field.
m_key_nameThe field's key name (for object members).
optionalWhether the field may be absent.
descriptionHuman-readable description of the field.
innerThe nested fields for arrays or objects.
optsAdditional options controlling validation and rendering.