pub struct CreatePassiveSellOfferOperation { /* private fields */ }Implementations§
Source§impl CreatePassiveSellOfferOperation
impl CreatePassiveSellOfferOperation
Sourcepub fn source_account(&self) -> &Option<MuxedAccount>
pub fn source_account(&self) -> &Option<MuxedAccount>
Retrieves the operation source account.
Sourcepub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
pub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
Retrieves a reference to the operation source account.
Sourcepub fn selling_mut(&mut self) -> &mut Asset
pub fn selling_mut(&mut self) -> &mut Asset
Retrieves a mutable reference to the operation seling asset.
Sourcepub fn buying_mut(&mut self) -> &mut Asset
pub fn buying_mut(&mut self) -> &mut Asset
Retrieves a mutable reference to the operation buying asset.
Sourcepub fn amount_mut(&mut self) -> &mut Stroops
pub fn amount_mut(&mut self) -> &mut Stroops
Retrieves a mutable reference to the operation amout.
Sourcepub fn to_xdr_operation_body(&self) -> Result<OperationBody>
pub fn to_xdr_operation_body(&self) -> Result<OperationBody>
Returns the xdr operation body.
Sourcepub fn from_xdr_operation_body(
source_account: Option<MuxedAccount>,
x: &CreatePassiveSellOfferOp,
) -> Result<CreatePassiveSellOfferOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &CreatePassiveSellOfferOp, ) -> Result<CreatePassiveSellOfferOperation>
Creates from the xdr operation body.
Trait Implementations§
Source§impl Clone for CreatePassiveSellOfferOperation
impl Clone for CreatePassiveSellOfferOperation
Source§fn clone(&self) -> CreatePassiveSellOfferOperation
fn clone(&self) -> CreatePassiveSellOfferOperation
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 PartialEq for CreatePassiveSellOfferOperation
impl PartialEq for CreatePassiveSellOfferOperation
Source§fn eq(&self, other: &CreatePassiveSellOfferOperation) -> bool
fn eq(&self, other: &CreatePassiveSellOfferOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePassiveSellOfferOperation
impl StructuralPartialEq for CreatePassiveSellOfferOperation
Auto Trait Implementations§
impl Freeze for CreatePassiveSellOfferOperation
impl RefUnwindSafe for CreatePassiveSellOfferOperation
impl Send for CreatePassiveSellOfferOperation
impl Sync for CreatePassiveSellOfferOperation
impl Unpin for CreatePassiveSellOfferOperation
impl UnwindSafe for CreatePassiveSellOfferOperation
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