Skip to main content

Notification

Type Alias Notification 

Source
pub type Notification<'a> = Notification<'a, Option<Cow<'a, RawValue>>>;
Available on crate feature server only.
Expand description

Re-export types from jsonrpsee_types crate for convenience.

Aliased Type§

pub struct Notification<'a> {
    pub jsonrpc: TwoPointZero,
    pub method: Cow<'a, str>,
    pub params: Option<Cow<'a, RawValue>>,
}

Fields§

§jsonrpc: TwoPointZero

JSON-RPC version.

§method: Cow<'a, str>

Name of the method to be invoked.

§params: Option<Cow<'a, RawValue>>

Parameter values of the request.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 48 bytes