Struct stellar_client::resources::Trade [−][src]
pub struct Trade { /* fields omitted */ }A trade represents an offer that was fulfilled between two assets and accounts.
https://www.stellar.org/developers/horizon/reference/resources/trade.html
Methods
impl Trade[src]
impl Tradepub fn id(&self) -> &str[src]
pub fn id(&self) -> &strThe id of the trade.
pub fn paging_token(&self) -> &str[src]
pub fn paging_token(&self) -> &strA paging_token suitable for use as a cursor parameter.
pub fn closed_at(&self) -> DateTime<Utc>[src]
pub fn closed_at(&self) -> DateTime<Utc>The closing time of the trade on the ledger
pub fn offer_id(&self) -> &str[src]
pub fn offer_id(&self) -> &strThe id of the offer involved in the trade.
pub fn base_account(&self) -> &str[src]
pub fn base_account(&self) -> &strThe base account of the trade that received the counter asset.
pub fn base_asset(&self) -> &AssetIdentifier[src]
pub fn base_asset(&self) -> &AssetIdentifierThe asset offerred from the base party of the trade.
pub fn base_amount(&self) -> Amount[src]
pub fn base_amount(&self) -> AmountThe amount of the base asset exchanged.
pub fn counter_account(&self) -> &str[src]
pub fn counter_account(&self) -> &strThe counter account of the trade that received the base asset.
pub fn counter_asset(&self) -> &AssetIdentifier[src]
pub fn counter_asset(&self) -> &AssetIdentifierThe asset offerred from the counter party of the trade.
pub fn counter_amount(&self) -> Amount[src]
pub fn counter_amount(&self) -> AmountThe amount of the counter asset exchanged.
pub fn price(&self) -> PriceRatio[src]
pub fn price(&self) -> PriceRatioThe original offer price.
pub fn seller(&self) -> Seller[src]
pub fn seller(&self) -> SellerWhich party is the seller
pub fn selling_account(&self) -> &str[src]
pub fn selling_account(&self) -> &strAccount of the selling party
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 Tradefn clone(&self) -> Trade[src]
fn clone(&self) -> TradeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'de> Deserialize<'de> for Trade[src]
impl<'de> Deserialize<'de> for Tradefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more