Construct an unconditional, non‐optional result field.

Synopsis

Declared in <rpc/util.h>

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

Parameters

Name

Description

type

The JSON type of the field.

m_key_name

The field's key name (for object members).

description

Human‐readable description of the field.

inner

The nested fields for arrays or objects.

opts

Additional options controlling validation and rendering.

Created with MrDocs