pub fn into_result_script(id: Value, result: Value) -> Result<String> {
    let retval = serde_json::to_string(&result)?;
    Ok(format!(
      "window.external.rpc._result({}, {})",
      id.to_string(),
      retval
    ))
  }
/// Get a script that resolves the promise with a result.
Get a script that resolves the promise with a result.
Get a script that resolves the promise with a result .
pub fn into_result_script(id: Value, result: Value) -> Result<String> {
    let retval = serde_json::to_string(&result)?;
    Ok(format!(
      "window.external.rpc._result({}, {})",
      id.to_string(),
      retval
    ))
  }
pub fn into_result_script ( id : Value , result : Value ) -> Result < String > { let retval = serde_json :: to_string ( & result ) ? ; Ok ( format ! ( " " id to_string ( ) retval ) ) }
Get a script that resolves the promise with a result.
Get a script that resolves the promise with a result .
id
Value
result
Value
id
Value
result
Value