Struct stellar_client::resources::effect::trade::Trade [−][src]
pub struct Trade { /* fields omitted */ }People on the Stellar network can make offers to buy or sell assets. When an offer is fully or partially fulfilled, a trade happens.
Methods
impl Trade[src]
impl Tradepub fn new(
account: String,
offer_id: i64,
seller: String,
sold_amount: Amount,
sold_asset: AssetIdentifier,
bought_amount: Amount,
bought_asset: AssetIdentifier
) -> Trade[src]
pub fn new(
account: String,
offer_id: i64,
seller: String,
sold_amount: Amount,
sold_asset: AssetIdentifier,
bought_amount: Amount,
bought_asset: AssetIdentifier
) -> TradeCreates a new Trade
pub fn account(&self) -> &String[src]
pub fn account(&self) -> &StringThe public address of the account that bought a trade
pub fn offer_id(&self) -> i64[src]
pub fn offer_id(&self) -> i64The id of the offer which was used in executing the trade
pub fn seller(&self) -> &String[src]
pub fn seller(&self) -> &StringThe public address of the other party in the trade
pub fn sold_amount(&self) -> Amount[src]
pub fn sold_amount(&self) -> AmountThe amount of the sold asset that was exchanged in this trade
pub fn sold_asset(&self) -> &AssetIdentifier[src]
pub fn sold_asset(&self) -> &AssetIdentifierThe asset being sold in the trade
pub fn bought_amount(&self) -> Amount[src]
pub fn bought_amount(&self) -> AmountThe amount of the bought asset that was exchanged in this trade
pub fn bought_asset(&self) -> &AssetIdentifier[src]
pub fn bought_asset(&self) -> &AssetIdentifierThe asset being bought in the trade
Trait Implementations
impl Debug for Trade[src]
impl Debug for Tradefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Trade[src]
impl Clone for Trade