pub trait Config: Config + Config<RuntimeEvent: From<Event<Self>>> {
type WeightInfo: WeightInfo;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type MaxPersonBatchSize: Get<u32>;
type People: PeopleTrait;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait. The configuration of the pallet dummy DIM.
Required Associated Types§
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The runtime event type.
Sourcetype UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may command personhood updates through this pallet. Root can always do this.
Sourcetype MaxPersonBatchSize: Get<u32>
type MaxPersonBatchSize: Get<u32>
The maximum number of people supported in a single operation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.