#[generate_storage_info]
Expand description

To generate the full storage info (used for PoV calculation) use the attribute #[pallet::generate_storage_info], e.g.:

#[pallet::pallet]
#[pallet::generate_storage_info]
pub struct Pallet<T>(_);

This requires all storage items to implement the trait StorageInfoTrait, thus all keys and value types must be bound by MaxEncodedLen. Individual storages can opt-out from this constraint by using #[pallet::unbounded] (see #[pallet::storage] for more info).