Trait orml_authority::AsOriginId
source · pub trait AsOriginId<Origin, PalletsOrigin> {
// Required methods
fn into_origin(self) -> PalletsOrigin;
fn check_dispatch_from(&self, origin: Origin) -> DispatchResult;
}
Expand description
Represent an origin that can be dispatched by other origins with permission check.
Required Methods§
sourcefn into_origin(self) -> PalletsOrigin
fn into_origin(self) -> PalletsOrigin
Convert into PalletsOrigin
sourcefn check_dispatch_from(&self, origin: Origin) -> DispatchResult
fn check_dispatch_from(&self, origin: Origin) -> DispatchResult
Check if the origin
is allow to dispatch call on behalf of this
origin.