Struct paystack::PaystackClient
source · pub struct PaystackClient<'a> {
pub transaction: TransactionEndpoints<'a>,
pub transaction_split: TransactionSplitEndpoints<'a>,
pub subaccount: SubaccountEndpoints<'a>,
pub terminal: TerminalEndpoints<'a>,
}
Expand description
This is the struct that allows you to authenticate to the PayStack API. It contains the API key which allows you to interact with the API.
Fields§
§transaction: TransactionEndpoints<'a>
Transaction API route
transaction_split: TransactionSplitEndpoints<'a>
Transaction Split API route
subaccount: SubaccountEndpoints<'a>
Subaccount API route
terminal: TerminalEndpoints<'a>
Terminal API route
Implementations§
source§impl<'a> PaystackClient<'a>
impl<'a> PaystackClient<'a>
sourcepub fn new(key: &'a str) -> PaystackClient<'a>
pub fn new(key: &'a str) -> PaystackClient<'a>
This method creates a new PayStack client with the specified API key.
It takes the following parameters: - key: Paystack API key.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PaystackClient<'a>
impl<'a> Send for PaystackClient<'a>
impl<'a> Sync for PaystackClient<'a>
impl<'a> Unpin for PaystackClient<'a>
impl<'a> UnwindSafe for PaystackClient<'a>
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