wtx 0.43.1

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::codec::protocol::JsonRpcNotificationParams;
use alloc::boxed::Box;

/// A request object without an "id" member. Generally used with WebSocket connections.
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[derive(Debug)]
pub struct JsonRpcNotification<R> {
  /// Name of the method invoked.
  pub method: Option<Box<str>>,
  /// See [`JsonRpcNotificationParams`].
  pub params: JsonRpcNotificationParams<R>,
}