warp_json_rpc::filters
pub fn json_rpc() -> impl Filter<Extract = (Builder,), Error = Rejection> + Copy
Create a Filter that requires and initializes JSON RPC handling.
Filter
Note that you MUST call this Filter before method or params method.
method
params
let rpc = json_rpc().and(method("greet")).and(params::<(String,)>());