Expand description
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§
- Binary
Value - Derives
BinaryValue
trait. The target type must implement (de)serialization logic, which should be provided externally. - Execution
Fail - Implements
ExecutionFail
trait for the given enum. Additionally,From<MyEnum> for ExecutionError
conversion is implemented, allowing to use errors in the service code. - From
Access - Derives
FromAccess
trait. - Object
Hash - Derives
ObjectHash
trait. The target type must implementBinaryValue
trait. - Require
Artifact - Implements
RequireArtifact
trait for the given struct or enum. The target type may be generic over type parameters. - Service
Dispatcher - Derives
ServiceDispatcher
trait. - Service
Factory - Derives
ServiceFactory
trait.