Struct shuttle_core::PathPaymentOperationBuilder
[−]
[src]
pub struct PathPaymentOperationBuilder { /* fields omitted */ }PathPaymentOperation builder.
Methods
impl PathPaymentOperationBuilder[src]
fn new(
destination: PublicKey,
send_asset: Asset,
send_max: Amount,
dest_asset: Asset,
dest_amount: Amount
) -> PathPaymentOperationBuilder[src]
destination: PublicKey,
send_asset: Asset,
send_max: Amount,
dest_asset: Asset,
dest_amount: Amount
) -> PathPaymentOperationBuilder
TODO
fn with_source(self, source: PublicKey) -> Self[src]
Set the operation source.
fn with_path(self, path: Vec<Asset>) -> Self[src]
Set the payment path.
fn push_asset(self, asset: Asset) -> Self[src]
Push asset to the payment path.
fn build(self) -> Operation[src]
Return the Operation.
Trait Implementations
impl Debug for PathPaymentOperationBuilder[src]
impl Clone for PathPaymentOperationBuilder[src]
fn clone(&self) -> PathPaymentOperationBuilder[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more