pub struct CreatePassiveOfferOperation {
pub source: Option<PublicKey>,
pub selling: Asset,
pub buying: Asset,
pub amount: Amount,
pub price: Price,
}
Expand description
Create a passive 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.
Trait Implementations§
Source§impl Clone for CreatePassiveOfferOperation
impl Clone for CreatePassiveOfferOperation
Source§fn clone(&self) -> CreatePassiveOfferOperation
fn clone(&self) -> CreatePassiveOfferOperation
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 CreatePassiveOfferOperation
impl Debug for CreatePassiveOfferOperation
impl Eq for CreatePassiveOfferOperation
impl StructuralPartialEq for CreatePassiveOfferOperation
Auto Trait Implementations§
impl Freeze for CreatePassiveOfferOperation
impl RefUnwindSafe for CreatePassiveOfferOperation
impl Send for CreatePassiveOfferOperation
impl Sync for CreatePassiveOfferOperation
impl Unpin for CreatePassiveOfferOperation
impl UnwindSafe for CreatePassiveOfferOperation
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