pub trait CallerTrait<AccountId>: Parameter + Member + From<RawOrigin<AccountId>> {
    fn into_system(self) -> Option<RawOrigin<AccountId>>;
    fn as_system_ref(&self) -> Option<&RawOrigin<AccountId>>;
Expand description

The trait implemented by the overarching enumeration of the different pallets’ origins. Unlike OriginTrait impls, this does not include any kind of dispatch/call filter. Also, this trait is more flexible in terms of how it can be used: it is a Parameter and Member, so it can be used as dispatchable parameters as well as in storage items.

Required Methods

Extract the signer from the message if it is a Signed origin.

Extract a reference to the system-level RawOrigin if it is that.