pub struct ManageOfferOperation {
pub source: Option<PublicKey>,
pub selling: Asset,
pub buying: Asset,
pub amount: Amount,
pub price: Price,
pub offer_id: u64,
}
Expand description
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§
Source§impl Clone for ManageOfferOperation
impl Clone for ManageOfferOperation
Source§fn clone(&self) -> ManageOfferOperation
fn clone(&self) -> ManageOfferOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ManageOfferOperation
impl Debug for ManageOfferOperation
Source§impl PartialEq for ManageOfferOperation
impl PartialEq for ManageOfferOperation
impl Eq for ManageOfferOperation
impl StructuralPartialEq for ManageOfferOperation
Auto Trait Implementations§
impl Freeze for ManageOfferOperation
impl RefUnwindSafe for ManageOfferOperation
impl Send for ManageOfferOperation
impl Sync for ManageOfferOperation
impl Unpin for ManageOfferOperation
impl UnwindSafe for ManageOfferOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more