pub fn method_not_found(method: String) -> Self {
        RpcError {
            code: -32_601,
            message: "Method not found".to_owned(),
            data: Some(Value::String(method.clone())),
            error_struct: Some(RpcErrorKind::RequestValidationError(
                RpcRequestValidationErrorKind::MethodNotFound {
                    method_name: method,
                },
            )),
        }
    }
/// Create a method not found error.
Create a method not found error.
Create a method not found error .
pub fn method_not_found(method: String) -> Self {
        RpcError {
            code: -32_601,
            message: "Method not found".to_owned(),
            data: Some(Value::String(method.clone())),
            error_struct: Some(RpcErrorKind::RequestValidationError(
                RpcRequestValidationErrorKind::MethodNotFound {
                    method_name: method,
                },
            )),
        }
    }
pub fn method_not_found ( method : String ) -> Self { RpcError { code : - 32_601 , message : " " . to_owned ( ) , data : Some ( Value :: String ( method . clone ( ) ) ) , error_struct : Some ( RpcErrorKind :: RequestValidationError ( RpcRequestValidationErrorKind :: MethodNotFound { method_name : method , } , ) ) , } }
Create a method not found error.
Create a method not found error .
method
String