Trait frame_support::traits::EnsureOrigin [−][src]
pub trait EnsureOrigin<OuterOrigin> {
type Success;
fn try_origin(o: OuterOrigin) -> Result<Self::Success, OuterOrigin>;
fn ensure_origin(o: OuterOrigin) -> Result<Self::Success, BadOrigin> { ... }
}Some sort of check on the origin is performed by this object.
Associated Types
Loading content...Required methods
fn try_origin(o: OuterOrigin) -> Result<Self::Success, OuterOrigin>[src]
Perform the origin check.
Provided methods
fn ensure_origin(o: OuterOrigin) -> Result<Self::Success, BadOrigin>[src]
Perform the origin check.