[][src]Function warp_json_rpc::filters::params

pub fn params<T>() -> impl Filter<Extract = (T,), Error = Rejection> + Copy where
    T: Deserialize<'de> + Send

Create a Filter that extracts RPC parameter.

Note that you MUST call json_rpc filter first.


let rpc = json_rpc().and(method("greet")).and(params::<(String,)>());