Struct stellar_client::resources::operation::Payment [−][src]
pub struct Payment { /* fields omitted */ }A payment operation represents a payment from one account to another. This payment can be either a simple native asset payment or a fiat asset payment.
Methods
impl Payment[src]
impl Paymentpub fn new(
from: String,
to: String,
asset: AssetIdentifier,
amount: Amount
) -> Payment[src]
pub fn new(
from: String,
to: String,
asset: AssetIdentifier,
amount: Amount
) -> PaymentCreates a new Payment
pub fn from(&self) -> &str[src]
pub fn from(&self) -> &strThe public address of the account making a payment.
pub fn to(&self) -> &str[src]
pub fn to(&self) -> &strThe public address of the account receiving a payment.
pub fn asset(&self) -> &AssetIdentifier[src]
pub fn asset(&self) -> &AssetIdentifierThe asset being sent in the payment
pub fn amount(&self) -> Amount[src]
pub fn amount(&self) -> AmountThe amount being sent in the payment
Trait Implementations
impl Debug for Payment[src]
impl Debug for Paymentfn 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 Payment[src]
impl Clone for Payment