Struct stellar_client::resources::payment_path::PaymentPath [−][src]
pub struct PaymentPath { /* fields omitted */ }A path resource contains information about a payment path. A path can be used by code to populate necessary fields on path payment operation, such as path and sendMax. The also describes assets this path hops through.
Methods
impl PaymentPath[src]
impl PaymentPathpub fn new(
path: Vec<AssetIdentifier>,
source_amount: Amount,
destination_amount: Amount,
destination_asset: AssetIdentifier,
source_asset: AssetIdentifier
) -> Result<PaymentPath, String>[src]
pub fn new(
path: Vec<AssetIdentifier>,
source_amount: Amount,
destination_amount: Amount,
destination_asset: AssetIdentifier,
source_asset: AssetIdentifier
) -> Result<PaymentPath, String>Returns a new Payment Path.
pub fn path(&self) -> &Vec<AssetIdentifier>[src]
pub fn path(&self) -> &Vec<AssetIdentifier>An array of assets that represents the intermediary assets this path hops through
pub fn destination_amount(&self) -> &Amount[src]
pub fn destination_amount(&self) -> &AmountDestination amount
pub fn source_amount(&self) -> &Amount[src]
pub fn source_amount(&self) -> &AmountSource amount
pub fn destination_asset(&self) -> &AssetIdentifier[src]
pub fn destination_asset(&self) -> &AssetIdentifierDestination asset specified in the search that found this path
pub fn source_asset(&self) -> &AssetIdentifier[src]
pub fn source_asset(&self) -> &AssetIdentifierSource asset specified in the search that found this path
Trait Implementations
impl Debug for PaymentPath[src]
impl Debug for PaymentPathfn 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 PaymentPath[src]
impl Clone for PaymentPathfn clone(&self) -> PaymentPath[src]
fn clone(&self) -> PaymentPathReturns 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
impl<'de> Deserialize<'de> for PaymentPath[src]
impl<'de> Deserialize<'de> for PaymentPathfn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for PaymentPath
impl Send for PaymentPathimpl Sync for PaymentPath
impl Sync for PaymentPath