Enum nash_protocol::types::blockchain::AssetOrCrosschain [−][src]
pub enum AssetOrCrosschain {
Asset(Asset),
Crosschain,
}
Expand description
An asset in the Ethereum and NEO smart contract protocols is represented either by an asset id or an indicator that the trade is occurring across blockchains.
Variants
Asset(Asset)
Tuple Fields of Asset
0: Asset
Implementations
Convert asset to id in bytes interpretable by the Ethereum
smart contract, or 0xffff
if it is a cross-chain asset
Convert asset to id in bytes interpretable by the NEO
smart contract, or 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
if it is a cross-chain asset
Read asset bytes from a protocol payload and convert into an Asset or mark as cross-chain
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AssetOrCrosschain
impl Send for AssetOrCrosschain
impl Sync for AssetOrCrosschain
impl Unpin for AssetOrCrosschain
impl UnwindSafe for AssetOrCrosschain
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more