Struct stellar_client::resources::operation::PathPayment [−][src]
pub struct PathPayment { /* fields omitted */ }A path payment operation represents a payment from one account to another through a path. This type of payment starts as one type of asset and ends as another type of asset. There can be other assets that are traded into and out of along the path.
Methods
impl PathPayment[src]
impl PathPaymentpub fn new(
from: String,
to: String,
destination_asset: AssetIdentifier,
destination_amount: Amount,
source_asset: AssetIdentifier,
source_max: Amount
) -> PathPayment[src]
pub fn new(
from: String,
to: String,
destination_asset: AssetIdentifier,
destination_amount: Amount,
source_asset: AssetIdentifier,
source_max: Amount
) -> PathPaymentCreates a new PathPayment
pub fn from(&self) -> &str[src]
pub fn from(&self) -> &strSender of a payment.
pub fn to(&self) -> &str[src]
pub fn to(&self) -> &strDestination of a payment.
pub fn destination_asset(&self) -> &AssetIdentifier[src]
pub fn destination_asset(&self) -> &AssetIdentifierAsset at the destination of payment path.
pub fn destination_amount(&self) -> Amount[src]
pub fn destination_amount(&self) -> AmountAmount received.
pub fn source_asset(&self) -> &AssetIdentifier[src]
pub fn source_asset(&self) -> &AssetIdentifierAsset at the source of payment path.
pub fn source_max(&self) -> Amount[src]
pub fn source_max(&self) -> AmountMax send amount.
Trait Implementations
impl Debug for PathPayment[src]
impl Debug for PathPaymentfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for PathPayment[src]
impl Clone for PathPaymentfn clone(&self) -> PathPayment[src]
fn clone(&self) -> PathPaymentReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for PathPayment
impl Send for PathPaymentimpl Sync for PathPayment
impl Sync for PathPayment