[−][src]Trait frame_support::traits::EnsureOrigin
Some sort of check on the origin is performed by this object.
Associated Types
Required methods
fn try_origin(o: OuterOrigin) -> Result<Self::Success, OuterOrigin>[−]
Perform the origin check.
Provided methods
fn ensure_origin(o: OuterOrigin) -> Result<Self::Success, BadOrigin>[−]
Perform the origin check.
Implementors
impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId> EnsureOrigin<O> for EnsureRoot<AccountId>
impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId> EnsureOrigin<O> for EnsureRoot<AccountId>impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId: Default> EnsureOrigin<O> for EnsureSigned<AccountId>
impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId: Default> EnsureOrigin<O> for EnsureSigned<AccountId>impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, Who: Contains<AccountId>, AccountId: PartialEq + Clone + Ord + Default> EnsureOrigin<O> for EnsureSignedBy<Who, AccountId>
impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, Who: Contains<AccountId>, AccountId: PartialEq + Clone + Ord + Default> EnsureOrigin<O> for EnsureSignedBy<Who, AccountId>impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId> EnsureOrigin<O> for EnsureNone<AccountId>
impl<O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, AccountId> EnsureOrigin<O> for EnsureNone<AccountId>impl<O, T> EnsureOrigin<O> for EnsureNever<T>
impl<O, T> EnsureOrigin<O> for EnsureNever<T>impl<AccountId, O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, L: EnsureOrigin<O>, R: EnsureOrigin<O>> EnsureOrigin<O> for EnsureOneOf<AccountId, L, R>
impl<AccountId, O: Into<Result<RawOrigin<AccountId>, O>> + From<RawOrigin<AccountId>>, L: EnsureOrigin<O>, R: EnsureOrigin<O>> EnsureOrigin<O> for EnsureOneOf<AccountId, L, R>