pub struct Payment {
pub sender: String,
pub receiver: String,
pub amount: Currency,
pub fee: Currency,
pub memo: Option<String>,
pub nonce: Option<u64>,
}Expand description
Parameters for sending a payment transaction.
Built using a fluent API where each method documents its purpose:
use mina_sdk::{Payment, Currency};
let payment = Payment::sender("B62qsender...")
.to("B62qreceiver...")
.amount(Currency::from_nanomina(1_500_000_000))
.fee(Currency::from_nanomina(10_000_000))
.memo("coffee payment")
.nonce(42);Fields§
§sender: String§receiver: String§amount: Currency§fee: Currency§memo: Option<String>§nonce: Option<u64>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Payment
impl RefUnwindSafe for Payment
impl Send for Payment
impl Sync for Payment
impl Unpin for Payment
impl UnsafeUnpin for Payment
impl UnwindSafe for Payment
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