Macro dusk_api::export_plugin[][src]

macro_rules! export_plugin {
    ($name: expr, $version: expr, $freight: ident) => { ... };
}

A macro, which can be used to make exporting of a struct easier

Example

dusk_api::export_plugin!("test", "0.1.0", MyFreight);

pub struct MyFreight;

impl Freight for MyFreight {
    // Your implementation here
}