pub async fn do_rpc<T: for<'a> serde::de::Deserialize<'a>>(
        &self,
        rpc_name: &str,
        args: &[serde_json::value::Value],
    ) -> Result<T, Error> {
        let request = self.build_request(rpc_name, args);
        let response = self.send_request(&request).await?;

        Ok(response.into_result()?)
    }
/// Make a request and deserialize the response.
Make a request and deserialize the response.
Make a request and deserialize the response .
pub async fn do_rpc<T: for<'a> serde::de::Deserialize<'a>>(
        &self,
        rpc_name: &str,
        args: &[serde_json::value::Value],
    ) -> Result<T, Error> {
        let request = self.build_request(rpc_name, args);
        let response = self.send_request(&request).await?;
        Ok(response.into_result()?)
    }
pub async fn do_rpc < T : for < ' a > serde :: de :: Deserialize < ' a > > ( & self , rpc_name : & str , args : & [ serde_json :: value :: Value ] , ) -> Result < T , Error > { let request = self . build_request ( rpc_name , args ) ; let response = self . send_request ( & request ) . await ? ; Ok ( response . into_result ( ) ? ) }
Make a request and deserialize the response.
Make a request and deserialize the response .
&self
rpc_name
&str
args
&[serde_json::value::Value]
&self
rpc_name
&str
args
&[serde_json::value::Value]