Struct paystack::Transaction
source · pub struct Transaction { /* private fields */ }
Expand description
This struct is used to create a transaction body for creating a transaction using the Paystack API.
IMPORTANT: This class can only be created using the TransactionBuilder.
The struct has the following fields: - amount: Amount should be in the smallest unit of the currency e.g. kobo if in NGN and cents if in USD - email: Customer’s email address - currency (Optional): Currency in which amount should be charged (NGN, GHS, ZAR or USD). Defaults to your integration currency.
Trait Implementations§
source§impl Debug for Transaction
impl Debug for Transaction
Auto Trait Implementations§
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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