pub fn new_error(id: Option<Value>, error: Option<Value>) -> Self {
    Self {
      jsonrpc: RPC_VERSION.to_string(),
      id,
      error,
      result: None,
    }
  }
/// Create a new error response.
Create a new error response.
Create a new error response .
pub fn new_error(id: Option<Value>, error: Option<Value>) -> Self {
    Self {
      jsonrpc: RPC_VERSION.to_string(),
      id,
      error,
      result: None,
    }
  }
pub fn new_error ( id : Option < Value > , error : Option < Value > ) -> Self { Self { jsonrpc : RPC_VERSION . to_string ( ) , id , error , result : None , } }
Create a new error response.
Create a new error response .
id
Option<Value>
error
Option<Value>
id
Option<Value>
error
Option<Value>