Struct stellar_client::resources::Offer [−][src]
pub struct Offer { /* fields omitted */ }An offer being made for particular assets at a particular exchange rate.
Methods
impl Offer[src]
impl Offerpub fn id(&self) -> i64[src]
pub fn id(&self) -> i64The id of the offer
pub fn paging_token(&self) -> &str[src]
pub fn paging_token(&self) -> &strA paging_token suitable for use as a cursor parameter.
pub fn seller(&self) -> &str[src]
pub fn seller(&self) -> &strThe account id fo the account making this offer.
pub fn selling(&self) -> &AssetIdentifier[src]
pub fn selling(&self) -> &AssetIdentifierThe asset being sold
pub fn buying(&self) -> &AssetIdentifier[src]
pub fn buying(&self) -> &AssetIdentifierThe asset being bought
pub fn price_ratio(&self) -> (u64, u64)[src]
pub fn price_ratio(&self) -> (u64, u64)Returns the numerator and denominator representing the buy and sell prices of the currencies on offer.
pub fn amount(&self) -> Amount[src]
pub fn amount(&self) -> AmountThe amount of the selling asset willing to be sold
pub fn price(&self) -> Amount[src]
pub fn price(&self) -> AmountHow many units of the buying asset it takes to get 10 million of selling
asset. This is the smallest divisible unit of the asset.
Trait Implementations
impl Debug for Offer[src]
impl Debug for Offerfn 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 Offer[src]
impl Clone for Offer