pub struct PaystackClient<T: HttpClient + Default> {
    pub transactions: TransactionEndpoints<T>,
    pub transaction_split: TransactionSplitEndpoints<T>,
    pub subaccount: SubaccountEndpoints<T>,
    pub terminal: TerminalEndpoints<T>,
    pub virutal_terminal: VirtualTerminalEndpoints<T>,
    pub customers: CustomersEndpoints<T>,
    pub dedicated_virtual_account: DedicatedVirtualAccountEndpoints<T>,
    pub apple_pay: ApplePayEndpoints<T>,
    pub plans: PlansEndpoints<T>,
}Expand description
This is the entry level struct for the paystack API. it allows for authentication of the client
Fields§
§transactions: TransactionEndpoints<T>Transaction API route
transaction_split: TransactionSplitEndpoints<T>Transaction Split API route
subaccount: SubaccountEndpoints<T>Subaccount API route
terminal: TerminalEndpoints<T>Terminal API route
virutal_terminal: VirtualTerminalEndpoints<T>Virutal Terminal API route
customers: CustomersEndpoints<T>Customers API route
dedicated_virtual_account: DedicatedVirtualAccountEndpoints<T>Dedicated Virtual Account API route
apple_pay: ApplePayEndpoints<T>Apple Pay API route
plans: PlansEndpoints<T>Plans API route
Implementations§
Source§impl<T: HttpClient + Default> PaystackClient<T>
 
impl<T: HttpClient + Default> PaystackClient<T>
pub fn new(api_key: String) -> PaystackClient<T>
Auto Trait Implementations§
impl<T> Freeze for PaystackClient<T>
impl<T> RefUnwindSafe for PaystackClient<T>where
    T: RefUnwindSafe,
impl<T> Send for PaystackClient<T>where
    T: Sync,
impl<T> Sync for PaystackClient<T>where
    T: Sync,
impl<T> Unpin for PaystackClient<T>
impl<T> UnwindSafe for PaystackClient<T>where
    T: RefUnwindSafe,
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