[][src]Crate exonum_derive

This crate provides macros for deriving some useful methods and traits for the exonum services.

Attribute Macros

exonum_interface

Derives an Exonum service interface for the specified trait.

interface_method

Meta-information attribute for interface methods.

Derive Macros

BinaryValue

Derives BinaryValue trait. The target type must implement (de)serialization logic, which should be provided externally.

ExecutionFail

Implements ExecutionFail trait for the given enum. Additionally, From<MyEnum> for ExecutionError conversion is implemented, allowing to use errors in the service code.

FromAccess

Derives FromAccess trait.

ObjectHash

Derives ObjectHash trait. The target type must implement BinaryValue trait.

RequireArtifact

Implements RequireArtifact trait for the given struct or enum. The target type may be generic over type parameters.

ServiceDispatcher

Derives ServiceDispatcher trait.

ServiceFactory

Derives ServiceFactory trait.