macro_rules! impl_storage_trait {
    ($trait_name:ident,$struct_name:ident,$field:ident,$data_ty:ty) => { ... };
}
Expand description

This macro_rule manually generates implementation for storage trait. You can use this macro to generate the implementation for the storage trait if you don’t want to use derive macro, or if it is not created.

The first argument is the name of the storage trait. The second argument is the name of the struct, for which you are creating the impl section. The third argument is the name of the field, which will be returned by the trait’s implementation. The fourth argument is the type of storage data, which will be returned.