Type Alias jsonrpsee_types::response::SubscriptionResponse
source · 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, Wide>,
pub params: SubscriptionPayload<'a, T>,
}
Fields§
§jsonrpc: TwoPointZero
JSON-RPC version.
method: Cow<'a, str, Wide>
Name of the method to be invoked.
params: SubscriptionPayload<'a, T>
Parameter values of the request.