pub struct PaymentOperation { /* private fields */ }Implementations§
Source§impl PaymentOperation
impl PaymentOperation
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 destination(&self) -> &MuxedAccount
pub fn destination(&self) -> &MuxedAccount
Retrieves the operation destination.
Sourcepub fn destination_mut(&mut self) -> &mut MuxedAccount
pub fn destination_mut(&mut self) -> &mut MuxedAccount
Retrieves a mutable reference to the operation destination.
Sourcepub fn amount_mut(&mut self) -> &mut Stroops
pub fn amount_mut(&mut self) -> &mut Stroops
Retrieves a mutable reference to the operation amount.
Sourcepub fn asset_mut(&mut self) -> &mut Asset
pub fn asset_mut(&mut self) -> &mut Asset
Retrieves a mutable reference to the operation asset.
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: &PaymentOp,
) -> Result<PaymentOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &PaymentOp, ) -> Result<PaymentOperation>
Creates from the xdr operation body.
Trait Implementations§
Source§impl Clone for PaymentOperation
impl Clone for PaymentOperation
Source§fn clone(&self) -> PaymentOperation
fn clone(&self) -> PaymentOperation
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 PaymentOperation
impl Debug for PaymentOperation
Source§impl PartialEq for PaymentOperation
impl PartialEq for PaymentOperation
impl Eq for PaymentOperation
impl StructuralPartialEq for PaymentOperation
Auto Trait Implementations§
impl Freeze for PaymentOperation
impl RefUnwindSafe for PaymentOperation
impl Send for PaymentOperation
impl Sync for PaymentOperation
impl Unpin for PaymentOperation
impl UnwindSafe for PaymentOperation
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