JSONRPC2 v2.0.0 JSONRPC2.Response View Source
JSON-RPC 2.0 Response object utilites.
Link to this section Summary
Functions
Deserialize the given response
using serializer
.
Returns a tuple containing the information contained in response
.
Link to this section Types
Specs
id_and_response() :: {JSONRPC2.id() | nil, {:ok, any()} | {:error, code :: integer(), message :: String.t(), data :: any()}}
Link to this section Functions
Specs
deserialize_response(String.t(), module()) :: {:ok, id_and_response()} | {:error, any()}
Deserialize the given response
using serializer
.
Specs
id_and_response(map()) :: {:ok, id_and_response()} | {:error, any()}
Returns a tuple containing the information contained in response
.