pub struct RpcNodeWssResponse<T>where
T: DeserializeOwned,{
pub jsonrpc: String,
pub method: String,
pub params: RpcNodeSubscriptionResponse<T>,
}
Expand description
A response structure received from a WebSocket JSON-RPC blockchain node subscription.
Fields§
§jsonrpc: String
JSON-RPC version identifier.
method: String
Name of the RPC method that was called.
params: RpcNodeSubscriptionResponse<T>
Parameters containing subscription information and the deserialized result.
Trait Implementations§
Source§impl<T> Debug for RpcNodeWssResponse<T>where
T: DeserializeOwned + Debug,
impl<T> Debug for RpcNodeWssResponse<T>where
T: DeserializeOwned + Debug,
Source§impl<'de, T> Deserialize<'de> for RpcNodeWssResponse<T>where
T: DeserializeOwned,
impl<'de, T> Deserialize<'de> for RpcNodeWssResponse<T>where
T: DeserializeOwned,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for RpcNodeWssResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for RpcNodeWssResponse<T>where
T: RefUnwindSafe,
impl<T> Send for RpcNodeWssResponse<T>where
T: Send,
impl<T> Sync for RpcNodeWssResponse<T>where
T: Sync,
impl<T> Unpin for RpcNodeWssResponse<T>where
T: Unpin,
impl<T> UnwindSafe for RpcNodeWssResponse<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more