Trait TokenTransfer

Source
pub trait TokenTransfer<'a>:
    Serialize
    + Deserialize<'a>
    + Clone
    + PartialEq
    + Eq
    + Hash {
    // Required methods
    fn timestamp(&self) -> u64;
    fn asset_hash(&self) -> H160;
    fn transfer_address(&self) -> &String;
    fn amount(&self) -> u64;
    fn block_index(&self) -> u32;
    fn transfer_notify_index(&self) -> u32;
    fn tx_hash(&self) -> H256;
}

Required Methods§

Source

fn timestamp(&self) -> u64

Source

fn asset_hash(&self) -> H160

Source

fn transfer_address(&self) -> &String

Source

fn amount(&self) -> u64

Source

fn block_index(&self) -> u32

Source

fn transfer_notify_index(&self) -> u32

Source

fn tx_hash(&self) -> H256

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§