stellar-client 0.1.2

A client interface to the stellar Horizon API
Documentation
use resources::{Amount, AssetIdentifier};
/// This effect can be the result of a create_account, payment, path_payment
/// or merge_account operation.  It represents the fact that assets were
/// removed to an account
#[derive(Debug, Deserialize, Clone)]
pub struct Debited {
    account: String,
    amount: Amount,
    asset: AssetIdentifier,
}

impl Debited {
    /// Creates a new Debited effect
    pub fn new(account: String, amount: Amount, asset: AssetIdentifier) -> Debited {
        Debited {
            account,
            amount,
            asset,
        }
    }
    /// The public address of the account that was removed
    pub fn account(&self) -> &String {
        &self.account
    }

    /// The asset being sent in the payment
    pub fn asset(&self) -> &AssetIdentifier {
        &self.asset
    }

    /// The amount being sent in the payment
    pub fn amount(&self) -> Amount {
        self.amount
    }
}