1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#[macro_use]
mod macros;

type Stuff = String;

#[test]
fn test() {
    jsonrpc_client!(pub struct RpcClient {
        single:
            pub fn a(&self, i: usize) -> Result<u64>;
        enum:
            pub fn b(&self) -> Result<A(Stuff)|B(Vec<String>)>;
    });
}