Struct node_template_runtime::Origin[][src]

pub struct Origin { /* fields omitted */ }

Implementations

impl Origin[src]

pub fn none() -> Self[src]

Create with system none origin and frame-system::Config::BaseCallFilter.

pub fn root() -> Self[src]

Create with system root origin and no filter.

pub fn signed(by: <Runtime as Config>::AccountId) -> Self[src]

Create with system signed origin and frame-system::Config::BaseCallFilter.

Trait Implementations

impl Clone for Origin[src]

impl Debug for Origin[src]

impl From<Option<<Runtime as Config>::AccountId>> for Origin[src]

fn from(x: Option<<Runtime as Config>::AccountId>) -> Self[src]

Convert to runtime origin with caller being system signed or none and use filter frame-system::Config::BaseCallFilter.

impl From<OriginCaller> for Origin[src]

impl From<RawOrigin<<Runtime as Config>::AccountId>> for Origin[src]

fn from(x: Origin<Runtime>) -> Self[src]

Convert to runtime origin:

  • root origin is built with no filter
  • others use frame-system::Config::BaseCallFilter

impl Into<Result<RawOrigin<<Runtime as Config>::AccountId>, Origin>> for Origin[src]

fn into(self) -> Result<Origin<Runtime>, Self>[src]

NOTE: converting to pallet origin loses the origin filter information.

impl OriginTrait for Origin[src]

type Call = <Runtime as Config>::Call

Runtime call type, as in frame_system::Config::Call

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.

type AccountId = <Runtime as Config>::AccountId

The AccountId used across the system.

fn none() -> Self[src]

Create with system none origin and frame-system::Config::BaseCallFilter.

fn root() -> Self[src]

Create with system root origin and no filter.

fn signed(by: <Runtime as Config>::AccountId) -> Self[src]

Create with system signed origin and frame-system::Config::BaseCallFilter.

Auto Trait Implementations

impl !RefUnwindSafe for Origin

impl !Send for Origin

impl !Sync for Origin

impl Unpin for Origin

impl !UnwindSafe for Origin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]