pub struct PaymentOperation {
pub source: Option<PublicKey>,
pub destination: PublicKey,
pub asset: Asset,
pub amount: Amount,
}
Expand description
Payment operation.
Fields§
§source: Option<PublicKey>
The source account for the operation.
destination: PublicKey
The destination account id.
asset: Asset
The asset to send.
amount: Amount
The amount to send.
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