1 2 3 4 5 6 7 8 9
#[jsonrpc_client::api] pub trait Math { async fn subtract(&self, subtrahend: i64, minuend: i64) -> i64; } #[jsonrpc_client::implement(Math)] pub struct Client; fn main() {}