JSONRPC2.Spec.Result (jsonrpc2_spec v0.2.0)

Copy Markdown

Struct which represents JSONRPC result.

Summary

Types

t()

@type t() :: %JSONRPC2.Spec.Result{
  id: JSONRPC2.Spec.id(),
  jsonrpc: String.t(),
  result: term()
}

Functions

new(id, result)

@spec new(JSONRPC2.Spec.id(), term()) :: t()