pub struct PaymentTransactionFields {
pub header: TransactionHeader,
pub receiver: Address,
pub amount: u64,
pub close_remainder_to: Option<Address>,
}
Expand description
Represents a payment transaction that transfers ALGO between accounts.
Fields§
§header: TransactionHeader
Common transaction header fields.
receiver: Address
The address of the account receiving the ALGO payment.
amount: u64
The amount of microALGO to send.
Specified in microALGO (1 ALGO = 1,000,000 microALGO).
close_remainder_to: Option<Address>
Optional address to send all remaining funds to after the transfer.
If specified, this indicates that the sender account should be closed after the transaction, and all remaining funds (minus fees) should be transferred to the specified address. This effectively removes the sender account from the ledger.
Trait Implementations§
Source§impl Clone for PaymentTransactionFields
impl Clone for PaymentTransactionFields
Source§fn clone(&self) -> PaymentTransactionFields
fn clone(&self) -> PaymentTransactionFields
Returns a copy 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 moreSource§impl Debug for PaymentTransactionFields
impl Debug for PaymentTransactionFields
Source§impl<'de> Deserialize<'de> for PaymentTransactionFields
impl<'de> Deserialize<'de> for PaymentTransactionFields
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaymentTransactionFields
impl PartialEq for PaymentTransactionFields
Source§impl Serialize for PaymentTransactionFields
impl Serialize for PaymentTransactionFields
impl StructuralPartialEq for PaymentTransactionFields
Auto Trait Implementations§
impl Freeze for PaymentTransactionFields
impl RefUnwindSafe for PaymentTransactionFields
impl Send for PaymentTransactionFields
impl Sync for PaymentTransactionFields
impl Unpin for PaymentTransactionFields
impl UnwindSafe for PaymentTransactionFields
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