register_freight

Macro register_freight 

Source
macro_rules! register_freight {
    ($freight: expr, $name: ident) => { ... };
}
Expand description

A macro, which can be used to create a registry function easier

ยงExample

dusk_api::register_freight!(MyFreight, my_reg_fn);
dusk_api::export_freight!("test", "0.1.0", my_reg_fn);

pub struct MyFreight;

impl Freight for MyFreight {
    // Your implementation here
}