referrerpolicy=no-referrer-when-downgrade

Attribute Macro frame_support::pallet_macros::getter

source ·
#[getter]
Expand description

Allows defining getter functions on Pallet storage.

§Example

#[frame_support::pallet]
mod pallet {
	#[pallet::pallet]
	pub struct Pallet<T>(_);

	#[pallet::storage]
	#[pallet::getter(fn my_getter_fn_name)]
	pub type MyStorage<T> = StorageValue<_, u32>;
}

See pallet::storage for more info.


Documentation for this macro can be found at frame_support::pallet_macros::getter.