exonum_derive

Derive Macro ServiceDispatcher

Source
#[derive(ServiceDispatcher)]
{
    // Attributes available to this derive:
    #[service_dispatcher]
}
Expand description

Derives ServiceDispatcher trait.

§Container Attributes

§implements

#[service_dispatcher(implements("path_1", "path_2"))]

List of the interfaces which have been implemented by the service. If omitted, it’s implied that the service does not implement interfaces.

§crate

#[service_dispatcher(crate = "path")]

Prefix of the exonum crate has two main values - crate or exonum. The default value is exonum.