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§
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
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.