Trait gear_common::Origin

source ·
pub trait Origin: Sized {
    // Required methods
    fn into_origin(self) -> H256;
    fn from_origin(val: H256) -> Self;

    // Provided method
    fn cast<T: Origin>(self) -> T { ... }
}

Required Methods§

source

fn into_origin(self) -> H256

source

fn from_origin(val: H256) -> Self

Provided Methods§

source

fn cast<T: Origin>(self) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Origin for u64

source§

fn into_origin(self) -> H256

source§

fn from_origin(v: H256) -> Self

source§

impl Origin for CodeId

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

source§

impl Origin for MessageId

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

source§

impl Origin for ProgramId

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

source§

impl Origin for AccountId32

source§

fn into_origin(self) -> H256

source§

fn from_origin(v: H256) -> Self

source§

impl Origin for H256

source§

fn into_origin(self) -> H256

source§

fn from_origin(val: H256) -> Self

Implementors§