[−][src]Derive Macro exonum_derive::RequireArtifact
#[derive(RequireArtifact)] { // Attributes available to this derive: #[require_artifact] }
Implements RequireArtifact
trait for the given struct or enum. The target type may
be generic over type parameters.
Container Attributes
crate
#[require_artifact(crate = "path")]
Prefix of the exonum
crate has two main values - crate
or exonum
. The default value
is exonum
.
name
#[require_artifact(name = "artifact_name")]
Name of the artifact. If omitted, will be set to the name of the crate.
version
#[require_artifact(version = "^1.3")]
Semantic version requirement on the artifact. If omitted, will be set to be semver-compatible
with the current version of the crate. Depending on the use case, this may be too limiting;
e.g., if a certain interface was defined in v1.0.0, version = "^1"
may be explicitly specified
in all the following crate releases.