fn parse_error_code(err: &Value) -> Option<i64> {
    if err.is_null() {
        return None;
    }
    err.as_object()?.get("code")?.as_i64()
}
/// Parse JSONRPC error code, if exists.
Parse JSONRPC error code, if exists.
Parse JSONRPC error code if exists .
fn parse_error_code(err: &Value) -> Option<i64> {
    if err.is_null() {
        return None;
    }
    err.as_object()?.get("code")?.as_i64()
}
fn parse_error_code ( err : & Value ) -> Option < i64 > { if err . is_null ( ) { return None ; } err . as_object ( ) ? . get ( " " ) ? . as_i64 ( ) }
Parse JSONRPC error code, if exists.
Parse JSONRPC error code if exists .
err
&Value
err
&Value