JSONRPC2 v1.2.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

Link to this type

id_and_response() View Source
id_and_response() ::
  {JSONRPC2.id() | nil,
   {:ok, any()}
   | {:error, code :: integer(), message :: String.t(), data :: any()}}

Link to this section Functions

Link to this function

deserialize_response(response, serializer) View Source
deserialize_response(String.t(), module()) ::
  {:ok, id_and_response()} | {:error, any()}

Deserialize the given response using serializer.

Link to this function

id_and_response(response) View Source
id_and_response(map()) :: {:ok, id_and_response()} | {:error, any()}

Returns a tuple containing the information contained in response.