pub fn into_result<T: serde::de::DeserializeOwned>(self) -> Result<T, Error> {
        if let Some(e) = self.error {
            return Err(Error::Rpc(e));
        }

        serde_json::from_value(self.result.unwrap_or(serde_json::Value::Null)).map_err(Error::Json)
    }
/// Extract the result from a response, consuming the response
Extract the result from a response, consuming the response
Extract the result from a response consuming the response
pub fn into_result<T: serde::de::DeserializeOwned>(self) -> Result<T, Error> {
        if let Some(e) = self.error {
            return Err(Error::Rpc(e));
        }
        serde_json::from_value(self.result.unwrap_or(serde_json::Value::Null)).map_err(Error::Json)
    }
pub fn into_result < T : serde :: de :: DeserializeOwned > ( self ) -> Result < T , Error > { if let Some ( e ) = self . error { return Err ( Error :: Rpc ( e ) ) ; } serde_json :: from_value ( self . result . unwrap_or ( serde_json :: Value :: Null ) ) . map_err ( Error :: Json ) }
Extract the result from a response, consuming the response
Extract the result from a response consuming the response
self
self