pub struct PathPaymentOperation {
pub source: Option<PublicKey>,
pub destination: PublicKey,
pub send_asset: Asset,
pub send_max: Amount,
pub dest_asset: Asset,
pub dest_amount: Amount,
pub path: Vec<Asset>,
}
Expand description
Send the specified asset to the destination account, optionally through a path.
Fields§
§source: Option<PublicKey>
The source account for the operation.
destination: PublicKey
The destination account id.
send_asset: Asset
The asset to pay with.
send_max: Amount
The maximum amount of send_asset to send.
dest_asset: Asset
The asset the destination will receive.
dest_amount: Amount
The amount the destination receives.
path: Vec<Asset>
The assets path.
Trait Implementations§
Source§impl Clone for PathPaymentOperation
impl Clone for PathPaymentOperation
Source§fn clone(&self) -> PathPaymentOperation
fn clone(&self) -> PathPaymentOperation
Returns a copy 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 PathPaymentOperation
impl Debug for PathPaymentOperation
Source§impl PartialEq for PathPaymentOperation
impl PartialEq for PathPaymentOperation
impl Eq for PathPaymentOperation
impl StructuralPartialEq for PathPaymentOperation
Auto Trait Implementations§
impl Freeze for PathPaymentOperation
impl RefUnwindSafe for PathPaymentOperation
impl Send for PathPaymentOperation
impl Sync for PathPaymentOperation
impl Unpin for PathPaymentOperation
impl UnwindSafe for PathPaymentOperation
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