Skip to main content

assert_is_notification

Function assert_is_notification 

Source
pub fn assert_is_notification(request: &JsonRpcRequest)
Expand description

Validates that a JSON-RPC request is a valid notification.

A notification has no id field.

ยงPanics

Panics if the request is not a notification.