Struct shuttle_core::ManageOfferOperation
[−]
[src]
pub struct ManageOfferOperation { pub source: Option<PublicKey>, pub selling: Asset, pub buying: Asset, pub amount: Amount, pub price: Price, pub offer_id: u64, }
Create, update, or delete an offer.
Fields
source: Option<PublicKey>
The source account for the operation.
selling: Asset
What you're selling.
buying: Asset
What you're buying.
amount: Amount
The total amount you're selling. If 0, deletes the offer.
price: Price
The exchange rate ratio.
offer_id: u64
Offer id. If 0, creates a new offer.
Trait Implementations
impl Debug for ManageOfferOperation
[src]
impl Clone for ManageOfferOperation
[src]
fn clone(&self) -> ManageOfferOperation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ManageOfferOperation
[src]
fn eq(&self, __arg_0: &ManageOfferOperation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ManageOfferOperation) -> bool
[src]
This method tests for !=
.