Struct fractal_api::types::Transaction
[−]
[src]
pub struct Transaction { // some fields omitted }
The representation of a global credit transaction
Methods
impl Transaction
[src]
fn get_id(&self) -> u64
Returns the id of the transaction
fn get_destination_user(&self) -> u64
Retruns the id of the user receiving the transaction
fn get_destination(&self) -> &WalletAddress
Returns the wallet address receiving the transaction
fn get_origin_user(&self) -> u64
Returns the user id sending the transaction
fn get_amount(&self) -> Amount
The amount of the transaction in global credits
fn get_timestamp(&self) -> &DateTime<UTC>
The timestamp of the transaction
Trait Implementations
impl Debug for Transaction
[src]
impl Decodable for Transaction
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Transaction, __D::Error>
impl Encodable for Transaction
[src]
impl Clone for Transaction
[src]
fn clone(&self) -> Transaction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more