[#RPCMethod-2constructor-02] = xref:RPCMethod.adoc[RPCMethod]::RPCMethod :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<rpc/util.h>` Construct a method description without an implementation handler. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:RPCMethod/2constructor-01.adoc[RPCMethod]( std::string name, std::string description, std::vector<RPCArg> args, xref:RPCResults.adoc[RPCResults] results, xref:RPCExamples.adoc[RPCExamples] examples); ---- [.small]#xref:RPCMethod/2constructor-01.adoc[_» more..._]# Construct a method description with an implementation handler. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:RPCMethod/2constructor-05.adoc[RPCMethod]( std::string name, std::string description, std::vector<RPCArg> args, xref:RPCResults.adoc[RPCResults] results, xref:RPCExamples.adoc[RPCExamples] examples, xref:RPCMethod/RPCMethodImpl.adoc[RPCMethodImpl] fun); ---- [.small]#xref:RPCMethod/2constructor-05.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *name* | The method name. | *description* | Human‐readable description of the method. | *args* | The method's arguments. | *results* | The method's possible results. | *examples* | Example invocations for the help text. | *fun* | The function implementing the method. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#