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);

Constructors

this
this(Json id)
Undocumented in source.
this
this(Json id, RpcError error)
Undocumented in source.
this
this(Json id, RpcResult result)
Undocumented in source.

Members

Functions

isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(RpcResponse res)
Undocumented in source. Be warned that the author may not have intended to support it.
toJson
Json toJson()
Undocumented in source. Be warned that the author may not have intended to support it.
toShared
shared(RpcResponse) toShared()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin t_field!(RpcResult, "result")
Undocumented in source.
__anonymous
mixin t_field!(RpcError, "error")
Undocumented in source.

Variables

id
Json id;
Undocumented in source.

Meta

Authors

Zaramzan <shamyan.roman@gmail.com>