pub type SubscriptionResponse<'a, T> = Notification<'a, SubscriptionPayload<'a, T>>;
Expand description
Subscription response object, embedding a SubscriptionPayload
in the params
member along with result
field.
Aliased Type§
struct SubscriptionResponse<'a, T> {
pub jsonrpc: TwoPointZero,
pub method: Cow<'a, str>,
pub params: SubscriptionPayload<'a, T>,
}
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
method: Cow<'a, str>
Name of the method to be invoked.
params: SubscriptionPayload<'a, T>
Parameter values of the request.