pub struct PaystackClient { /* private fields */ }Implementations§
Source§impl PaystackClient
impl PaystackClient
pub fn new<S: Into<String>>(secret_key: S) -> Self
pub fn generate_refrence(&self) -> String
pub async fn initialize_payment( &self, email: &str, amount: f64, callback_url: &str, ) -> Result<(String, PaymentInitializeResponse), Error>
pub async fn verify_payment( &self, reference: &str, ) -> Result<PaymentVerifyResponse, Error>
Auto Trait Implementations§
impl Freeze for PaystackClient
impl !RefUnwindSafe for PaystackClient
impl Send for PaystackClient
impl Sync for PaystackClient
impl Unpin for PaystackClient
impl UnsafeUnpin for PaystackClient
impl !UnwindSafe for PaystackClient
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