pub fn convert_result<'a, T: Deserialize<'a>>(
        &self,
        input: &'a str,
    ) -> Result<T, failure::Error> {
        let result = serde_json::from_str::<T>(input).map_err(|e| {
            format_err!(
                "Convert result failed, reason: {:?}; content: [{:?}]",
                e,
                input
            )
        })?;
        Ok(result)
    }
/// Function to convert result to models
Function to convert result to models
Function to convert result to models
pub fn convert_result<'a, T: Deserialize<'a>>(
        &self,
        input: &'a str,
    ) -> Result<T, failure::Error> {
        let result = serde_json::from_str::<T>(input).map_err(|e| {
            format_err!(
                "Convert result failed, reason: {:?}; content: [{:?}]",
                e,
                input
            )
        })?;
        Ok(result)
    }
pub fn convert_result < ' a , T : Deserialize < ' a > > ( & self , input : & ' a str , ) -> Result < T , failure :: Error > { let result = serde_json :: from_str :: < T > ( input ) . map_err ( | e | { format_err ! ( " " e input ) } ) ? ; Ok ( result ) }
Function to convert result to models
Function to convert result to models
&self
input
&'a str
&self
input
&'a str