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 { ... }
}Expand description
NOTE: Implementation of this for u64 places bytes from idx=0.
Required Methods§
fn into_origin(self) -> H256
fn from_origin(val: H256) -> Self
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Origin for AccountId32
impl Origin for AccountId32
fn into_origin(self) -> H256
fn from_origin(v: H256) -> Self
Source§impl Origin for H256
impl Origin for H256
fn into_origin(self) -> H256
fn from_origin(val: H256) -> Self
Implementors§
impl Origin for ActorId
impl Origin for CodeId
impl Origin for ExternalOrigin
Available on crate feature
std only.impl Origin for MessageId
impl Origin for PlainNodeId
Available on crate feature
std only.impl Origin for ReservationId
impl Origin for ReservationNodeId
Available on crate feature
std only.