Struct fractal_api::v1::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) -> &Profile
Retruns the id of the user receiving the transaction
fn get_destination_address(&self) -> &WalletAddress
Returns the wallet address receiving the transaction
fn get_origin_user(&self) -> &Profile
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 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
impl Debug for Transaction
[src]
impl FromDTO<TransactionDTO> for Transaction
[src]
fn from_dto(dto: TransactionDTO) -> StdResult<Transaction, FromDTOError>
the from dto wrapper