pub struct PaymentTransactionBuilder { /* private fields */ }
Expand description
Builder for PaymentTransactionFields
.
Implementations§
Source§impl PaymentTransactionBuilder
impl PaymentTransactionBuilder
Sourcepub fn header(&mut self, value: TransactionHeader) -> &mut Self
pub fn header(&mut self, value: TransactionHeader) -> &mut Self
Common transaction header fields.
Sourcepub fn receiver(&mut self, value: Address) -> &mut Self
pub fn receiver(&mut self, value: Address) -> &mut Self
The address of the account receiving the ALGO payment.
Sourcepub fn amount(&mut self, value: u64) -> &mut Self
pub fn amount(&mut self, value: u64) -> &mut Self
The amount of microALGO to send.
Specified in microALGO (1 ALGO = 1,000,000 microALGO).
Sourcepub fn close_remainder_to(&mut self, value: Address) -> &mut Self
pub fn close_remainder_to(&mut self, value: Address) -> &mut Self
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.
Sourcepub fn build_fields(
&self,
) -> Result<PaymentTransactionFields, PaymentTransactionBuilderError>
pub fn build_fields( &self, ) -> Result<PaymentTransactionFields, PaymentTransactionBuilderError>
Source§impl PaymentTransactionBuilder
impl PaymentTransactionBuilder
pub fn build(&self) -> Result<Transaction, PaymentTransactionBuilderError>
Trait Implementations§
Source§impl Clone for PaymentTransactionBuilder
impl Clone for PaymentTransactionBuilder
Source§fn clone(&self) -> PaymentTransactionBuilder
fn clone(&self) -> PaymentTransactionBuilder
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 moreAuto Trait Implementations§
impl Freeze for PaymentTransactionBuilder
impl RefUnwindSafe for PaymentTransactionBuilder
impl Send for PaymentTransactionBuilder
impl Sync for PaymentTransactionBuilder
impl Unpin for PaymentTransactionBuilder
impl UnwindSafe for PaymentTransactionBuilder
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