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
BinaryValuetrait. The target type must implement (de)serialization logic, which should be provided externally. - Execution
Fail - Implements
ExecutionFailtrait for the given enum. Additionally,From<MyEnum> for ExecutionErrorconversion is implemented, allowing to use errors in the service code. - From
Access - Derives
FromAccesstrait. - Object
Hash - Derives
ObjectHashtrait. The target type must implementBinaryValuetrait. - Require
Artifact - Implements
RequireArtifacttrait for the given struct or enum. The target type may be generic over type parameters. - Service
Dispatcher - Derives
ServiceDispatchertrait. - Service
Factory - Derives
ServiceFactorytrait.