pgator

JSON-RPC 2.0 Protocol

This module contain JSON-RPC 2.0  response

See Also
http://www.jsonrpc.org/specification
License
Subject to the terms of the MIT license, as written in the included LICENSE file.
Authors
Zaramzan

struct  RpcResponse;

Struct desctibes JSON-RPC 2.0 response

Example

 auto res1 = RpcResponse(1, error);
 auto res2 = RpcResponse(Json(null), result);
 aut0 res3 = RpcResponse("mycustomidsystem", result);

Authors
Zaramzan

struct  RpcResult;

Struct describes JSON-RPC 2.0 result which used in RpcRequest

Example

 auto res = RpcResult(res);

Authors
Zaramzan

this(in Bson bson);

Supported only ctor from Bson yet