Macro jsonrpc_client_core::jsonrpc_client [−][src]
macro_rules! jsonrpc_client { ( $(#[$struct_attr:meta])* pub struct $struct_name:ident {$( $(#[$attr:meta])* pub fn $method:ident(&mut $selff:ident $(, $arg_name:ident: $arg_ty:ty)*) -> RpcRequest<$return_ty:ty>; )*} ) => { ... }; }
The main macro of this crate. Generates JSON-RPC 2.0 client structs with automatic serialization and deserialization. Method calls get correct types automatically.