pub fn new(code: i64, message: String, data: Option<Value>) -> Self {
        RpcError {
            code,
            message,
            data,
            error_struct: None,
        }
    }
/// A generic constructor.
///
/// Mostly for completeness, doesn't do anything but filling in the corresponding fields.
A generic constructor.
Mostly for completeness, doesn't do anything but filling in the corresponding fields.
A generic constructor . Mostly for completeness doesn ' t do anything but filling in the corresponding fields .
pub fn new(code: i64, message: String, data: Option<Value>) -> Self {
        RpcError {
            code,
            message,
            data,
            error_struct: None,
        }
    }
pub fn new ( code : i64 , message : String , data : Option < Value > ) -> Self { RpcError { code , message , data , error_struct : None , } }
A generic constructor.
A generic constructor .
code
i64
message
String
data
Option<Value>