When declaring storage
items inside the runtime, we can automatically generate getters to query that storage item, for example (https://docs.substrate.io/v3/runtime/storage/#declaring-`storage-items`)`:
#[pallet::storage]
#[pallet::getter(fn some_primitive_value)]
pub(super) type SomePrimitiveValue<T> = StorageValue<_, u32, ValueQuery>;
Is there a simple way to generate a setter in the same way? While a simple setter is likely undesirable on all storage items, it would be handy to have a shorthand way to set storage values from root or signed accounts:
#[pallet::root_setter(fn some_primitive_value)]
#[pallet::signed_setter(fn some_primitive_value)]