use tetsy_jsonrpc_derive::rpc; #[rpc] pub trait Rpc { /// Returns a protocol version #[rpc(Xname = "protocolVersion")] fn protocol_version(&self) -> Result; } fn main() {}