pub fn error(message: String, code: isize, id: Option<u32>) -> Self {
        Self {
            jsonrpc: SN_AUTHD_JSONRPC_VERSION.to_string(),
            result: None,
            error: Some(JsonRpcError {
                code,
                message,
                data: "".to_string(),
            }),
            id,
        }
    }
// Construct a JsonRpcResponse containing an error response
Construct a JsonRpcResponse containing an error response
Construct a JsonRpcResponse containing an error response
pub fn error(message: String, code: isize, id: Option<u32>) -> Self {
        Self {
            jsonrpc: SN_AUTHD_JSONRPC_VERSION.to_string(),
            result: None,
            error: Some(JsonRpcError {
                code,
                message,
                data: "".to_string(),
            }),
            id,
        }
    }
pub fn error ( message : String , code : isize , id : Option < u32 > ) -> Self { Self { jsonrpc : SN_AUTHD_JSONRPC_VERSION . to_string ( ) , result : None , error : Some ( JsonRpcError { code , message , data : " " . to_string ( ) , } ) , id , } }
Construct a JsonRpcResponse containing an error response
Construct a JsonRpcResponse containing an error response
message
String
code
isize
id
Option<u32>