1 2 3 4 5 6 7 8 9 10 11 12
#[macro_use] mod macros; #[test] fn test() { jsonrpc_client!(pub struct RpcClient { single: pub fn a(&self, i: usize) -> Result<u64>; enum: pub fn b(&self) -> Result<A(String)|B(Vec<String>)>; }); }
1 2 3 4 5 6 7 8 9 10 11 12
#[macro_use] mod macros; #[test] fn test() { jsonrpc_client!(pub struct RpcClient { single: pub fn a(&self, i: usize) -> Result<u64>; enum: pub fn b(&self) -> Result<A(String)|B(Vec<String>)>; }); }