Struct stellar_client::resources::operation::ManageOffer [−][src]
pub struct ManageOffer { /* fields omitted */ }A “Manage Offer” operation can create, update or delete an offer to trade assets in the Stellar network. It specifies an issuer, a price and amount of a given asset to buy or sell.
Methods
impl ManageOffer[src]
impl ManageOfferpub fn new(
offer_id: i64,
selling: AssetIdentifier,
buying: AssetIdentifier,
amount: Amount,
price_ratio: PriceRatio,
price: Amount
) -> ManageOffer[src]
pub fn new(
offer_id: i64,
selling: AssetIdentifier,
buying: AssetIdentifier,
amount: Amount,
price_ratio: PriceRatio,
price: Amount
) -> ManageOfferCreates a new ManageOffer
pub fn offer_id(&self) -> i64[src]
pub fn offer_id(&self) -> i64Offer ID.
pub fn selling(&self) -> &AssetIdentifier[src]
pub fn selling(&self) -> &AssetIdentifierThe identifier of the asset to sell.
pub fn buying(&self) -> &AssetIdentifier[src]
pub fn buying(&self) -> &AssetIdentifierThe identifier of the asset to buy.
pub fn amount(&self) -> Amount[src]
pub fn amount(&self) -> AmountAmount of asset to be sold.
pub fn price_ratio(&self) -> &PriceRatio[src]
pub fn price_ratio(&self) -> &PriceRation: price numerator, d: price denominator.
pub fn price(&self) -> Amount[src]
pub fn price(&self) -> AmountPrice to buy a buying_asset.
Trait Implementations
impl Debug for ManageOffer[src]
impl Debug for ManageOfferfn 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 ManageOffer[src]
impl Clone for ManageOfferfn clone(&self) -> ManageOffer[src]
fn clone(&self) -> ManageOfferReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for ManageOffer
impl Send for ManageOfferimpl Sync for ManageOffer
impl Sync for ManageOffer