pub struct PathPaymentOperationBuilder { /* private fields */ }
Expand description
PathPaymentOperation
builder.
Implementations§
Source§impl PathPaymentOperationBuilder
impl PathPaymentOperationBuilder
Sourcepub fn new(
destination: PublicKey,
send_asset: Asset,
send_max: Amount,
dest_asset: Asset,
dest_amount: Amount,
) -> PathPaymentOperationBuilder
pub fn new( destination: PublicKey, send_asset: Asset, send_max: Amount, dest_asset: Asset, dest_amount: Amount, ) -> PathPaymentOperationBuilder
TODO
Sourcepub fn with_source(self, source: PublicKey) -> Self
pub fn with_source(self, source: PublicKey) -> Self
Set the operation source
.
Sourcepub fn push_asset(self, asset: Asset) -> Self
pub fn push_asset(self, asset: Asset) -> Self
Push asset
to the payment path.
Trait Implementations§
Source§impl Clone for PathPaymentOperationBuilder
impl Clone for PathPaymentOperationBuilder
Source§fn clone(&self) -> PathPaymentOperationBuilder
fn clone(&self) -> PathPaymentOperationBuilder
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 moreAuto Trait Implementations§
impl Freeze for PathPaymentOperationBuilder
impl RefUnwindSafe for PathPaymentOperationBuilder
impl Send for PathPaymentOperationBuilder
impl Sync for PathPaymentOperationBuilder
impl Unpin for PathPaymentOperationBuilder
impl UnwindSafe for PathPaymentOperationBuilder
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